How to float save mongodb?

C# save float
ex) 0.9f
Mongodb > a : 0.8999999761581421

Meteor Js save parseFloat
ex ) 0.9
Mongodb > a : 0.9000000000000000

C# load fail

What should I do?

I think this is a distinction between C# and Javascript as opposed to a distinction imposed by mongodb. provides some context and vs may help you.

1 Like

thx :smiley:
C# float -> double change

1 Like