Lingo Dictionary > D-F > floatP()

 

floatP()

Syntax

(expression).floatP
floatP(expression)

Description

Function; indicates whether the value specified by expression is a floating-point number (1 or TRUE) or not (0 or FALSE).

The P in floatP stands for predicate.

Example

This statement tests whether 3.0 is a floating-point number. The Message window displays the number 1, indicating that the statement is TRUE.

put (3.0).floatP
-- 1

This statement tests whether 3 is a floating-point number. The Message window displays the number 0, indicating that the statement is FALSE.

put (3).floatP
-- 0

See also

float(), ilk(), integerP(), objectP(), stringP(), symbolP()