You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your understanding is correct right now. But I don't want to mention the detail algorithm how to generate the decimal notation in the documentation because it is not the specification but an implementation detail.
The specification of the method BigDecimal is that it generates a decimal notation from a Float so that it can be converted back to the original number and it's number of digits is fewer than the other decimal notation candidates that can be converted back to the original. The number of digits may not be the fewest.
Doc for method BigDecimal says:
0
, the numberdtoa
functionIs this also true for other methods that have digits/ndigits?
The text was updated successfully, but these errors were encountered: