Hi all,
Can someone explain to me why MS returns the following values with these function calls?
convert.toint16(1.5) = 2 (this is expected)
convert.toint16(2.5) = 2 (huh?)
convert.toint16(3.5) = 4 (this is expected)
convert.toint16(4.5) = 4 (huh?)
the same is true for math.round. Can someone shed some light on this for me?
regards,
Bill
Can someone explain to me why MS returns the following values with these function calls?
convert.toint16(1.5) = 2 (this is expected)
convert.toint16(2.5) = 2 (huh?)
convert.toint16(3.5) = 4 (this is expected)
convert.toint16(4.5) = 4 (huh?)
the same is true for math.round. Can someone shed some light on this for me?
regards,
Bill