Home

Float

Float class represents a double-precision floating-point value

Operations

ArcTan2

Calculates arc tangent of y/x

function : public : ArcTan2(y:Float, x:Float) ~ Float
Parameters
NameTypeDescription
yFloatvalue
xFloatvalue

Return
TypeDescription
Floatarc-tangent value

E

Value of E

function : public : native : E() ~ Float
Return
TypeDescription
Floatvalue of E

Error

Prints error value

function : public : Error() ~ Nil

ErrorLine

Prints error value with newline

function : public : ErrorLine() ~ Nil

Max

Returns the largest float value

function : public : native : Max(l:Float, r:Float) ~ Float
Parameters
NameTypeDescription
lFloatvalue to compare
rFloatvalue to compare

Return
TypeDescription
Floatlargest float value

Min

Returns the smallest float value

function : public : native : Min(r:Float) ~ Float
Parameters
NameTypeDescription
rFloatvalue to compare

Return
TypeDescription
Floatsmallest float value

Pi

Value of Pi

function : public : native : Pi() ~ Float
Return
TypeDescription
Floatvalue of Pi

Power

Calculates the power value

function : public : Power(b:Float, r:Float) ~ Float
Parameters
NameTypeDescription
bFloatpower base
rFloatpower to raise

Return
TypeDescription
Floatpseudo power value

Print

Prints value

function : public : Print() ~ Nil

PrintLine

Prints value with newline

function : public : PrintLine() ~ Nil

Random

Returns a pseudo random value between 0.0 and 1.0

function : public : Random() ~ Float
Return
TypeDescription
Floatpseudo random value

ToDegrees

Converts the value into degrees

function : public : native : ToDegrees() ~ Float
Return
TypeDescription
Floatdegree value

ToRadians

Converts the value into radians

function : public : native : ToRadians() ~ Float
Return
TypeDescription
Floatradian value

ToString

Returns a string representation of the value

function : public : native : ToString() ~ String
Return
TypeDescription
Stringstring representation of the value