F_BACnet_RealToStr

Function for converting a floating-point number to a string, taking into account the value range.

F_BACnet_RealToStr 1:

VAR_INPUT

pValue       : POINTER TO REAL;

pValue: Pointer to the floating-point number to be converted ("ADR()").

Return value: For a finite value range the string from the floating-point number is output in the same format as after conversion with "REAL_TO_STRING()". If the value is in the infinite range, "#QNAN" (positive infinite) or "-#QNAN" (negative infinite) is output, depending on the sign.

Example

F_BACnet_RealToStr 2:
BACnetSPS_RealToStrBeispiel


Fig. 1: Example for pointer determination with "ADR()". "fValue" represents a variable of type REAL.