Use this function when you need to be sure the expression is of TYPE FLOATING.

 

Function examines the expression numeric TYPE to determine if it is a Floating Point or decimal number.

 

Syntax:

value = IsFloating( expression )

 

Parameter:

Description:

expression

expression to check

value

Returns True when the expression is a floating value, or a False when it isn't.

 

Example:

VARIABLES: variableOne TYPE: STRING
variableOne = "ABC"

 
IF IsFloating(variableOne) THEN
  print variableOne, " is floating."
ELSE
  print variableOne, " is NOT floating."
ENDIF

 

Results:

This prints "ABC is NOT floating.

 

Links:

AsFloating, AsInteger, AsSeries, AsString, IsInteger, IsString

See Also:

Data Groups and Types

 


Edit Time: 9/18/2020 11:54:48 AM


Topic ID#: 43

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software