for label calculating i must create a checksum from number.
but i notice that sometimes the function integer (int) is behaving different...?
this is the code:
Code: Select all
let>varA=91
//varA=91
let>varB=%varA%/10
//varb=9.1
let>varC={int(%varB%)}
//varC=9
let>varD=%varB%-%varC%
//should be: 9.1 minus 9 =0.1
//but result is varD=0.099999999999
but the calculation makes it 0.099999999
Is this also when you try it on your versions of MS ?
Why is this behaviour and how do i solve this ?
kind regards,
Djek