Add formatting of small floats (10^-n)#319
Conversation
also fixes incorrect rounding
|
On your test-run factorion replied on https://www.reddit.com/r/testingground4bots/comments/1rabfbh/comment/o77a0e8/ The before reply was more precise |
|
Ok investigating this I found, that the true result is Even though I confirmed we now do better (as more correct), I wanna figure out why it was wrong previously. |
|
Checked on master now, and can't reproduce that response, just get |
I needed a while to reproduce, but it happens to me only if the language is NOT Example-test: for |
This enables formatting small floats like 6.631537423e-34 as 6.631537423 × 10^-34, by allowing negative exponents in
format_float(and some more logic to handle that).Also fixes #315
Resolves #308