Float object

Float values are "objects" of this class.

Constants

MIN
- float, minimal value of the float type.
MAX
- float, maximal value of the float type.

Methods

toFloat

( ) : float

Simply returns value of the float.

toInteger

( ) : int

Converts this float value to integer.

toString
( )

Returns string representation of the float.

toHtmlString

() : string

Returns string escaped by html rules. Is an alias of the toString() method here.

toUrlString

() : string

Returns string escaped by url rules. Is an alias of the toString() method here.

valueOf
( ) : float

Simply returns value of the float itself.

min

( ... ) : float

Static method - returns minimum value of its arguments. E.g. Float.min(1.0, 2.0, 3.0) will return 1.

max

( ... ) : float

Static method - returns maximum value of its arguments. E.g. Float.max(1.0, 2.0, 3.0) will return 3.0.

isNaN
( ) : true|false

Returns true if this float value appears to be not a number.

isFinite
( ) : true|false

Returns true if this float value is a finite number.

morph

( from, to, ratio ) : float

Computes the average value using the formula: (to - from) * ratio + from;