02-16-2023 03:00 AM
Hello, everyone.
I have a problem that may seem very trivial, but it bothers me a lot.
Why is it that when I multiply a constant double of value 0 by a negative number I get the result -0? How can I prevent this from happening?
Thanks to everyone who will help me out, have a nice day!
Solved! Go to Solution.
02-16-2023 03:23 AM
Because LabVIEW follows IEEE 754.
Wikipedia has a short description how that works: https://en.wikipedia.org/wiki/Signed_zero
You can add 0 to -0 to get 0:
https://forums.ni.com/t5/LabVIEW/quot-minus-zero-quot-in-numeric-indicator/td-p/1831859