Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Set the number of decimal points
- ``val midpoint = BigDecimal(lowerBound + width / 2).setScale(10, BigDecimal.RoundingMode.HALF_EVEN).toDouble``
- - Stringify a Double after rounding it to a specific number of significant decimals
- ``f$value%.7g``
Add Comment
Please, Sign In to add comment