-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Floating Point Precision #557
Comments
In my case I have the opposite problem, I am getting too precise numbers, like |
I made #663 to address this. |
I'm interested in this |
Hey, nice work. I tried this out, but it doesn't seem to apply to Also, it appears there is a downside where floats that happen to be whole numbers that do not contain any decimals end up displaying with padded zeros when they previously displayed without them. |
This is governed by the
Yes, this is how |
I can understand why
-1
was used here, but it can cause some pain when loading the message, say in elasticsearch with the value0
instead of0.00
for example.For me, it creates a field of type
long
instead of what I really want it to be, afloat
and I'm sure there may be other specific cases.I propose adding a
FloatingPointPrecission
variable somewhere around here with a default value of-1
, then everyone is happy :)The text was updated successfully, but these errors were encountered: