Click or drag to resize

IsFloat Function

X#
Determine if a value is a FLOAT.

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

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
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#
1IF IsFloat(uValue)
2    nDecimal := 2
3ELSE
4    nDecimal := 0
5ENDIF
6? Str(uValue, 10, nDecimal)
See Also