Groovy web console

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

round

Published 2 months ago by 1111
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
//Double d = 164.735
double d = 990.0 * 1.1765000
println d.round(2)

println d.round(5)
println d.round(5).round(2)