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 7 months ago by Ibrahim
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
BigDecimal testNumber = 101.00
if(testNumber > 100){
  println "number greater than 100"
} else if (testNumber == 100){
    println "equal to 100"
}else {
    println "less than 100"
}