float/1

TestS whether a term is a floating point (real) number

float(Term) -(i)

?Term <term>

Compatibility: LPA Win-Prolog.

Remarks A "floating point number" is actually a real number in Visual Prolog, as well as in G.I.S. Prolog. So, this predicate could also have been named "isreal/1" or "real/1". However, the name "float/1" was chosen for compatibility with LPA Win-Prolog.