11-30-2018 05:54 AM
I have an error when i run this program, It works well but when the number is more than 32,000 it turns into negative number i don't know why
can anyone help?
Solved! Go to Solution.
11-30-2018 06:18 AM - edited 11-30-2018 06:23 AM
Bool to 01 returns i16 value. The maximum value is 32768.
For correct values convert i16 into ext
11-30-2018 07:00 AM
Do you really need extended? How big could this number get? Using double should be just fine.
And since it looks like you are just adding integers, all of your wires should be blue instead of orange. (blue=integer, orange=floating point). Try converting to I32 or even I64 which gets you ~ =/- 2 billion and ~ =/- 1e19, respectively.