I want to get a BigDecimal record.
`1M` (`1E0M`) -> `0`
`10M` (`1E1M`) -> `1`
`11M` (`1.1E1M`) -> `1`
`1E2M` -> `2`
`1.0E2M` -> `2`
`100M` (`1.00E2M`) -> `2`
scale, at least on my own, is not what I need. I really would not have to use .toPlainStringand hack something around this.
I'm a little surprised that the metric I want is not part of the BigDecimal internal view.
I am using BigDecimal from Clojure, but any logic that works for Java is also welcome.
source
share