I see issue while storing decimal value in mongodb. I am using C# .Net drivers in my application to insert update in mongodb.
I have below property in class with type double.
[BsonRepresentation(BsonType.Decimal128)]
public double? ProductPrice{ get; set; }
In Code we are assigning value for ProductPrice as 38.59 but in collection it got stored like below which is unexpected. I want to get stored whatever value we are assigning to property. It should get stored without extra decimal points.
“ProductPrice” : NumberDecimal(“38.590000000000003”)