projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.08k stars 97 forks source link

maximum_fraction_digits doesn't do anything #368

Open nazar-pc opened 2 months ago

nazar-pc commented 2 months ago

Setting this doesn't seem to have any effect whatsoever. I see it is set in the example here, but the input value doesn't have enough floating point digits to actually check it or else assertion would fail: https://github.com/projectfluent/fluent-rs/blob/bda4736095a4a60a9a042b336d0789c22461905d/fluent-bundle/examples/custom_formatter.rs#L123-L143

nazar-pc commented 2 months ago

According to fluent-bundle/src/types/number.rs most of the options seem to be doing nothing :confused: