klyn.Boolean.Boolean
constructor
public native Boolean(value as Float)
Description

Builds a Boolean from a floating-point value. Zero becomes false, every other value becomes true.

Parameters
ParameterDescription
valuethe floating-point value to convert.
Example
assert not Boolean(0.0f)
assert Boolean(1.5f)