Format total length

This commit is contained in:
aj
2018-05-31 23:13:14 -04:00
parent 09fa851367
commit a7b0f90a32
3 changed files with 21 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System;
namespace CutToLength
{
@@ -15,7 +16,7 @@ namespace CutToLength
[JsonIgnore]
public double TotalLength
{
get { return Length * Quantity; }
get { return Math.Round(Length * Quantity, 8); }
}
public int Quantity { get; set; } = 1;