Groovy web console

subscribe to the feed Subscribe
to this
site
BigDecimal (via #groovywebconsole)
tweet this snippet Tweet
this
script

BigDecimal

Published 3 weeks ago by msibert
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def a = 9.99

println "Directo ${new BigDecimal(a)}"

println "Safe ${new BigDecimal(a as String)}"