In my asp.net, I have double?
field in my model :
public class MyModel
{
/// <summary>
/// VoltageCVal
/// </summary>
[DataMember(Name = "voltageCVal")]
public double? VoltageCVal { get; set; }
}
In web api ,I get the data from database and it get the result of 3.2999999523162842
before return, when it returns, I get the api result of 3.3
Why it happens?Could you help me?