next up previous

12.5.1.9 Convert To Float

The float function converts its only argument (which should be a numeric expression) to type float and returns this value.

Syntax

(float <numeric-expression>)

Example

CLIPS> (float 4.0)
4.0
CLIPS> (float -2)
-2.0
CLIPS>


next up previous