Guest User

Untitled

a guest
Dec 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. - Set the number of decimal points
  2. ``val midpoint = BigDecimal(lowerBound + width / 2).setScale(10, BigDecimal.RoundingMode.HALF_EVEN).toDouble``
  3.  
  4. - Stringify a Double after rounding it to a specific number of significant decimals
  5. ``f$value%.7g``
Add Comment
Please, Sign In to add comment