Name

tofloat — Converts a value to a floating point number.

Synopsis

float tofloat ( any VALUE );
 

Parameters

any VALUE

Return

float

Description

If the value can't be converted to a float, nilfloat is returned.

Usage

  tofloat (4) -> 4.0
 

  tofloat ("42") -> 42.0
 

  tofloat ("3.14") -> 3.14