Open gnp opened 3 months ago
The distinction should be here in this if statement: https://github.com/akubera/bigdecimal-rs/blob/369dfaed970d91a9d0a27ba554c9579d595ebffb/src/impl_fmt.rs#L109
(All of the formatting code should be in that impl_fmt.rs
file)
The upper E
is properly written in scientific notation (with decimal point after first digit) vs the lower e
is for "integer" exponents (for large exponents), where no decimal point is added. This isn't documented anywhere, just my ad-hoc convention.
Is this causing issues with something?
I'll note you can force one or the other via formatting {:e}
for {:E}
for consistent scientific notation.
Examples (the non-parenthetical representation is a string used to construct the BigDecimal):
I looked through the source for the formatting and it appears "e" is the majority case but existing test cases check for "E" in a couple places.