Float

32-bit floating-point number.

xxml
Language::Core

Methods

MethodParametersReturnsDescription
ConstructorFloat^Create Float (0.0)
Constructorvalue: floatFloat^Create from literal
addother: Float^Float^Addition
subtractother: Float^Float^Subtraction
multiplyother: Float^Float^Multiplication
divideother: Float^Float^Division
equalsother: Float^Bool^Equality check
lessThanother: Float^Bool^Less than
greaterThanother: Float^Bool^Greater than
toStringString^Convert to string
toIntegerInteger^Truncate to Integer
toDoubleDouble^Convert to Double

Examples

Float Operations

xxml
Instantiate Float^ As <pi> = Float::Constructor(3.14159f);
Instantiate Float^ As <radius> = Float::Constructor(2.5f);
Instantiate Float^ As <area> = pi.multiply(radius).multiply(radius);

See Also