IsFloat Function | |
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
public static bool IsFloat(
Usual uValue
)
Request Example
View SourceParameters
- 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:
1IF IsFloat(uValue)
2 nDecimal := 2
3ELSE
4 nDecimal := 0
5ENDIF
6? Str(uValue, 10, nDecimal)
See Also