Groovy web console

subscribe to the feed Subscribe
to this
site

format

Published 3 months ago by n/a
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.DecimalFormat 

a = '243'
df = new DecimalFormat("#0.00")

df.format(Float.parseFloat(a))