Groovy web console

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

compare BigDecimal with < >

Published 5 months ago by Ibrahim
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
BigDecimal testNumber = 19.00
if(testNumber > 100){
  println "number greater than 100"
} else if (testNumber == 100){
    println "equal to 100"
}else {
    println "less than 100"
}