All Bundles
Float
Float class represents a double-precision floating-point value
Derived from: Number
Operations
Abs
Returns the absolute value
function : Abs() ~ Float
Return
Type | Description |
---|
Float | absolute value |
ArcCos
Calculates the cosine value
function : ArcCos() ~ Float
Return
Type | Description |
---|
Float | cosine value |
ArcCosh
Calculates the arc-hyperbolic cosine
function : ArcCosh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic arc-cosine value |
ArcSin
Calculates the arc-sine value
function : ArcSin() ~ Float
Return
Type | Description |
---|
Float | arc-sine value |
ArcSinh
Calculates the arc-hyperbolic sine
function : ArcSinh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic arc-sine value |
ArcTan
Calculates the arc-tangent value
function : ArcTan() ~ Float
Return
Type | Description |
---|
Float | arc-tangent value |
ArcTan2
Calculates arc tangent of y/x
function : ArcTan2(y:Float, x:Float) ~ Float
Parameters
Return
Type | Description |
---|
Float | arc-tangent value |
ArcTanh
Calculates the arc-hyperbolic tangent
function : ArcTanh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic arc-tangent value |
Cbrt
Calculates the cubic root
function : Cbrt() ~ Float
Return
Type | Description |
---|
Float | cubic root |
Ceil
Calculates the ceiling value
function : Ceil() ~ Float
Return
Type | Description |
---|
Float | ceiling value |
Clamp
Returns a given value between an upper and lower bound
function : Clamp(min:Float, value:Float, max:Float) ~ Float
Parameters
Name | Type | Description |
---|
min | Float | minimal value |
value | Float | value between the min and max |
max | Float | maximum value |
Return
Type | Description |
---|
Float | min if vaule is less than main, max if max is less than value, otherwise the value |
Clear
Set all array elements to zero
function : Clear(f:Float[]) ~ Nil
Parameters
Compare
Compares two value
function : Compare(l:Float, r:Float) ~ Int
Parameters
Name | Type | Description |
---|
l | Float | left compare object |
r | Float | right compare object |
Return
Type | Description |
---|
Int | 0 if equal, -1 if types differ, 1 if equal |
Cos
Calculates the cosine value
function : Cos() ~ Float
Return
Type | Description |
---|
Float | cosine value |
Cosh
Calculates the hyperbolic cosine
function : Cosh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic cosine value |
DoubleFactorial
Calculates the double factorial of the value
function : native : DoubleFactorial(n:Float) ~ Float
Parameters
Name | Type | Description |
---|
n | Float | number |
Return
Type | Description |
---|
Float | double factorial of the value |
E
Value of E
function : E() ~ Float
Return
Type | Description |
---|
Float | value of E |
Error
Prints error value
function : Error() ~ Nil
ErrorLine
Prints error value with newline
function : ErrorLine() ~ Nil
Exp
Calculates exponential value
function : Exp() ~ Float
Return
Type | Description |
---|
Float | exponential value |
Factorial
Calculates the factorial value
function : Factorial(n:Float) ~ Float
Parameters
Name | Type | Description |
---|
n | Float | number |
Return
Type | Description |
---|
Float | factorial value |
Floor
Calculates the floor value
function : Floor() ~ Float
Return
Type | Description |
---|
Float | floor value |
Gamma
Calculates the gamma value
function : Gamma() ~ Float
Parameters
Return
Type | Description |
---|
Float | gamma value |
Inf
Returns a positive infinity value
function : Inf() ~ Float
Return
Type | Description |
---|
Float | positive infinity value |
IsNeg
Checks is a number is negative
function : IsNeg() ~ Bool
Return
Type | Description |
---|
Bool | true if negative, false otherwise |
Log
Calculates the log value
function : Log() ~ Float
Return
Type | Description |
---|
Float | log value |
Log10
Calculates the common (base-10) logarithm value
function : Log10() ~ Float
Return
Type | Description |
---|
Float | common (base-10) logarithm value |
Log2
Calculates the binary logarithm
function : Log2() ~ Float
Return
Type | Description |
---|
Float | binary logarithm |
Max
Returns the largest float value
function : native : Max(l:Float, r:Float) ~ Float
Parameters
Name | Type | Description |
---|
l | Float | value to compare |
r | Float | value to compare |
Return
Type | Description |
---|
Float | largest float value |
Min
Returns the smallest float value
function : native : Min(r:Float) ~ Float
Parameters
Name | Type | Description |
---|
r | Float | value to compare |
Return
Type | Description |
---|
Float | smallest float value |
Mod
Calculates the decimal mod
function : Mod(a:Float, b:Float) ~ Float
Parameters
Return
Type | Description |
---|
Float | decimial mod |
NaN
Returns a NaN value
function : NaN() ~ Float
Return
Type | Description |
---|
Float | NaN value |
NegInf
Returns a negative infinity value
function : NegInf() ~ Float
Return
Type | Description |
---|
Float | negative infinity value |
Pi
Value of Pi
function : Pi() ~ Float
Return
Type | Description |
---|
Float | value of Pi |
Pow
Calculates the power value
function : Pow(b:Float, r:Int) ~ Float
Parameters
Name | Type | Description |
---|
b | Float | power base |
r | Int | power to raise |
Return
Type | Description |
---|
Float | pseudo power value |
Calculates the power value
function : Pow(b:Float, r:Float) ~ Float
Parameters
Name | Type | Description |
---|
b | Float | power base |
r | Float | power to raise |
Return
Type | Description |
---|
Float | pseudo power value |
Print
Prints value
function : Print() ~ Nil
PrintLine
Prints value with newline
function : PrintLine() ~ Nil
Prints values
function : native : PrintLine(v:Float[]) ~ Nil
Parameters
Name | Type | Description |
---|
v | Float[] | values to print |
Prints values
function : native : PrintLine(v:Float[,]) ~ Nil
Parameters
Name | Type | Description |
---|
v | Float[,] | values to print |
Random
Returns a pseudo random value between 0.0 and 1.0, inclusive
function : Random() ~ Float
Return
Type | Description |
---|
Float | pseudo random value |
Returns a pseudo random value between 0.0 and max, inclusive
function : Random(max:Float) ~ Float
Parameters
Name | Type | Description |
---|
max | Float | maximum value |
Return
Type | Description |
---|
Float | pseudo random value |
Returns a pseudo random value between 0.0 and 1.0, inclusive
function : Random(range_start:Float, range_end:Float) ~ Float
Parameters
Name | Type | Description |
---|
range_start | Float | minimum value |
range_end | Float | maximum value |
Return
Type | Description |
---|
Float | pseudo random value |
Round
Rounds the value
function : Round() ~ Float
Return
Type | Description |
---|
Float | rounded value |
Sign
Returns the sign of a number
function : Sign() ~ Float
Return
Type | Description |
---|
Float | sign of a number |
Sin
Calculates the sine value
function : Sin() ~ Float
Return
Type | Description |
---|
Float | sine value |
Sinh
Calculates the hyperbolic sine
function : Sinh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic sine value |
Sqrt
Calculates the square root value
function : Sqrt() ~ Float
Return
Type | Description |
---|
Float | square root value |
Tan
Calculates the tangent value
function : Tan() ~ Float
Return
Type | Description |
---|
Float | tangent value |
Tanh
Calculates the hyperbolic tangent
function : Tanh() ~ Float
Return
Type | Description |
---|
Float | hyperbolic tangent value |
ToByte
Returns the Character value
function : ToByte() ~ Byte
Return
ToChar
Returns the Int value
function : ToChar() ~ Char
Return
ToDegrees
Converts the value into degrees
function : ToDegrees() ~ Float
Return
Type | Description |
---|
Float | degree value |
ToInt
Returns the Int value
function : ToInt() ~ Int
Return
ToRadians
Converts the value into radians
function : ToRadians() ~ Float
Return
Type | Description |
---|
Float | radian value |
ToString
Returns a string representation of the value
function : native : ToString() ~ String
Return
Type | Description |
---|
String | string representation of the value |
Returns a string representation of the float array
function : ToString(v:Float[,]) ~ String
Parameters
Return
Type | Description |
---|
String | string representation of the float array |
Trunc
Truncates the value
function : Trunc() ~ Float
Return
Type | Description |
---|
Float | truncated value |