Number printing gives error because of f64 conversion #214
Labels
duplicate
good first issue
Want to help? Those are great bugs to start with!
help wanted
We need help making decisions or writing PRs for this.
When using variables representing floating numbers, strange situations can arise.
The reason for this is https://docs.rs/fluent-bundle/0.14.0/src/fluent_bundle/types/number.rs.html#178 where everything is converted to a
f64
.e.g if you use
let v : f32 = 300072.3;
and passv
as a FluentValue, it will be shown as300072.3125
because off64
's higher accuracy.If you would keep it as a f32, however, it would be shown correctly?
The text was updated successfully, but these errors were encountered: