Menu

#3 DecimalFormatter rounding bug

open
6
2005-11-08
2005-11-08
Brad Koehn
No

Given a decimal format of "0.000", if the user enters
"0.0079", the formatter spits out "0.107" instead of
"0.008". This only happens if the digit in the smallest
allowed decimal place (7, above) is greater than or
equal to 5.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.