float(
VALUE
)

The float( function converts a fixed point number to a floating point number.


Parameters

This function has one parameter:

value – is the value you want to convert to a floating point number. You may use any numeric value, for example 1, -7, 9823 etc.


Description

This function converts any input value into a floating point number.

float(3) ☞ 3.0000
float("3") ☞ 3.0000
float("abc") ☞ 0.0000
float(3.5) ☞ 3.5000

As the examples show, this function accepts any type of value, including integers, text, and even floating point numbers (in which case the function has no effect).


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.