NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What does INF evaluate to?

Can someone further explain the special constant value INF.  In the help documents of Teststand it says that this is equivalent to an INF value in Visual C++, but I've never used an INF value in Visual C++. 
 
Thanks.
0 Kudos
Message 1 of 3
(3,212 Views)
Hey Guy04,
The constant value INF is a representation of infinity.  This value will usually be returned if you are doing a mathematic operation that would actually return infinity.  For example in TestStand if you were to divide a numeric value by 0 and store that, the stored value would be INF.  If you are doing any kind of numeric operations with INF,such as numeric comparisons, TestStand should handle it as infinity.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,190 Views)

If you are interested in the actual bits involved, TestStand uses IEEE 754 floating point numbers, the same format used by most other programming languages.

Here is a reference:

http://stevehollasch.com/cgindex/coding/ieeefloat.html

 

 

Message 3 of 3
(3,180 Views)