Imagine that I have the following code:
"
rule “LoraServer”
when
Item Lora_rec received update
then
var String[] buffer= Lora_rec.state.toString.split(",")
var Number calc=new Float(buffer.get(1))
// until here all ok, imagine that calc= 1254
calc=calc/100.0
// here calc showld be 12.54 but its 13 (round of 12.54)
postUpdate(LoraD01001Ana1, calc)
…
end
"
What I neet is the float value of the calc that should be 12.54 not the int 13