Why Do I Get -Inf in Numeric Indicator

Updated Aug 29, 2023

Reported In


  • LabVIEW

Issue Details

I wrote a LabVIEW code and I have a numeric indicator that shows -Inf after I run it. I was expecting a number. Why is this happening? 


A numeric indicator will show -Inf if somewhere in the code where it is calculated there is a division by 0 as shown below. 

Additional Information

To find out where the division by zero happens, refer to Debugging Tools in LabVIEW. Also, make sure you are not dividing by an array that has elements that are initialised as 0. 

Undefined data can also be from taking a square root of a negative number as shown in the figure below. 
LabVIEW supports Complex Numbers but they require a special numeric data type.