hi folks,
is Java Math.round in OH doing something weird?
val test = -0.6 * 10
val testa = Math.round(test)
val testb = testa / 10
logInfo("x","start")
logInfo("x",test.toString)
logInfo("x",testa.toString)
logInfo("x",testb.toString)
logInfo("x","---")
ouputs
2021-04-06 10:49:03.051 [INFO ] [org.eclipse.smarthome.model.script.x] - start
2021-04-06 10:49:03.052 [INFO ] [org.eclipse.smarthome.model.script.x] - -6.0
2021-04-06 10:49:03.053 [INFO ] [org.eclipse.smarthome.model.script.x] - -6
2021-04-06 10:49:03.054 [INFO ] [org.eclipse.smarthome.model.script.x] - 0
2021-04-06 10:49:03.055 [INFO ] [org.eclipse.smarthome.model.script.x] - ---
How is possible that -6 / 10 = 0 ??
Am I missing something?