Click or drag to resize

IsFloat Function

Determine if a value is a FLOAT.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION IsFloat(
	uValue AS USUAL
) AS LOGIC
View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Boolean
TRUE if the value is the FLOAT data type; otherwise, FALSE.
Remarks
Examples
This example uses IsFloat() to determine how to format numeric data for display:
X#
IF IsFloat(uValue)
        nDecimal := 2
ELSE
        nDecimal := 0
ENDIF
? Str(uValue, 10, nDecimal)
See Also