Groovy web console

subscribe to the feed Subscribe
to this
site

Round

Published 3 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Float averageSum = 3.888889;
println(averageSum);
roundedOne = averageSum.round(1);
println(roundedOne);
roundedTwo = averageSum.round(2);
println(roundedTwo);