Knowledge Base

This applies only to SPLat/PC versions 6.15.0 or later, and is relevant only to SPLat controllers with language dialect 15 or later.

The NV0fNum directive causes SPLat/PC to create a 4-byte floating point number in NVEM0 memory.

Example:

MyTable:   NV0fNum   3.1415926             NV0fNum   +Inf

This will cause the floating point values 3.1415926 and Infinity to be stored in NVEM0 locations MyTable and MyTable+4 (occupying 4 bytes per value).

Notice that you can use the irrational number +Inf and -Inf (Infinity and -Infinity are also allowed). These generate the corresponding floating point representations. This may be useful for creating end of table sentinels (markers). You can also use NaN (Not a Number). Whether either of these makes sense depends on how you use the result codes returned by many floating point operations.

Please refer to the NVEM0 documentation for more details on the use of NVEM0.

Note that from SPLat/PC build 329 you may place NVEM directives anywhere in your code.  If you do this, then the line label for an NV0fNum directive must be on the same line. The following is not allowed:

MyTable:    **** ILLEGAL!!! *****
NV0fNum 3.1415926