Home

Float

Float class represents a double-precision floating-point value

Operations

Abs

Returns the absolute value

function : public : native : Abs() ~ Float
Return
TypeDescription
Floatabsolute value

ArcCos

Calculates the cosine value

function : public : ArcCos() ~ Float
Return
TypeDescription
Floatcosine value

ArcSin

Calculates the arc-sine value

function : public : ArcSin() ~ Float
Return
TypeDescription
Floatarc-sine value

ArcTan2

Calculates arc tangent of y/x

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

Return
TypeDescription
Floatarc-tangent value

Ceiling

Calculates the ceiling value

function : public : Ceiling() ~ Float
Return
TypeDescription
Floatceiling value

Cos

Calculates the cosine value

function : public : Cos() ~ Float
Return
TypeDescription
Floatcosine 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

Floor

Calculates the floor value

function : public : Floor() ~ Float
Return
TypeDescription
Floatfloor value

Log

Calculates the log value

function : public : Log() ~ Float
Return
TypeDescription
Floatlog value

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

Sin

Calculates the sine value

function : public : Sin() ~ Float
Return
TypeDescription
Floatsine value

SquareRoot

Calculates the natural log value

function : public : SquareRoot() ~ Float
Return
TypeDescription
Floatnatural log value

Tan

Calculates the tangent value

function : public : Tan() ~ Float
Return
TypeDescription
Floattangent 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