Groovy web console

subscribe to the feed Subscribe
to this
site

Coerce floating point to integer

Published 2 years ago by Andy Duncan
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def x = 1.2f
def y = x as int