float

A floating point number.

Details

The basic floating point number type.

Float constants can be inserted into the code as numbers containing a decimal point. Numbers without decimal point are considered to be integers.

Example

 float f = 1.0 / 3.0
 echo( f )
 

Output

 0.33333333
 

Casts To

string
int
bool

See also