tests whether the argument is a floating-point number.
float/1 succeeds if Term is a floating-point number otherwise it fails.
Term term
| float(7.11). | Succeeds. |
| X=4.3*2, float(X). | Succeeds. |
| float(4.3*2). | Fails. |
| float(7). | Fails. |
This predicate is part of the ISO-Prolog Standard.