February 2014
Beginner
1248 pages
62h 25m
English
• Any application that requires precise floating-point calculations without rounding errors—such as those in financial applications—should instead use class BigDecimal (package java.math; p. 346).
• BigDecimal static method valueOf (p. 347) with a double argument returns a BigDecimal that represents the exact value specified.
• BigDecimal method add (p. 347) adds its argument BigDecimal to the BigDecimal on which the method is called and returns the result.
• BigDecimal provides the constants ONE (1), ZERO (0) and TEN (10).
• BigDecimal method pow (p. 347) raises its first argument to the power specified in its second argument.
• BigDecimal method multiply (p. 347) multiplies its ...
Read now
Unlock full access