Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy default to use BigDecimal scale 10 woth RoundUp

Published 1 month ago by kovax with tags math BigDecimal
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def dividend = 8.0
def divisor = 9.0
def quotient = dividend / divisor
println "1/3 = ${quotient}"