编辑代码

//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
println("Hello world!     -  groovy.jsrun.net")
def assignRateSum = 1005
def topupAmount = 1000
assignRateSum = assignRateSum/topupAmount
def res = Math.round(assignRateSum*1000.0)
println "Math.round : " + res
if (Math.round(assignRateSum*1000.0) != 1000){
    println "!= 100, res:" + res
}