 |
BigDecimal, setScale() and ROUND_HALF_UP... (Beginning Java forum at JavaRanch)
Hello, I am wondering why running the following: [code] import java.math.BigDecimal; public class Test { public static void main(String args[]) ... I would have also rounded the latter to -2.13, since -2.13 is numerically greater than -2.1350. Anyway, I w
www.coderanch.com |
 |