Math libary

Math.Abs

Math.Atan

Math.Atan2

Math.Cieling

Math.Cos

Math.Floor

Math.Max

Math.Min

Math.Neg

Math.Pow

Math.Random

Math.Sign

Math.Sin

Math.Sqrt

Math.Tan

Math.ToDegrees

Math.ToRadians


Math.Abs


Useage: Math.Abs(Number val)
Returns: Number
Description: Returns the value entered converted to a positive number
Code example: Math.Abs(1)
Return value: 1
Code example: Math.Abs(-1)
Return value: 1
Code example: Math.Abs(0)
Return value: 0

Math.Atan


Useage: Math.Atan(Number value)
Returns: Number
Description: Return the inverse tangent.
Code example: Math.Atan(-1)
Return value: -0.785398

Math.Atan2


Useage: Math.Atan2(Number y, Number x)
Returns: Number
Description: Return the inverse tangent.
Code example: Math.Atan2(-1, 0)
Return value: -1.570796

Math.Cieling


Useage: Math.Cieling(Number value)
Returns: Number
Description: Removes the decimal at a number, and pushes the number upwards if needed.
Code example: Math.Cieling(0.1)
Return value: 1
Code example: Math.Cieling(1.1)
Return value: 2
Code example: Math.Cieling(5.9)
Return value: 6

Math.Cos


Useage: Math.Cos(Number rad)
Returns: Number
Description: Returns a number from -1 to 1 depending on the radians you enter.
Code example: Math.Cos(3.141593)
Return value: -1
Code example: Math.Cos(-6.283186)
Return value: 1
Code example: Math.Cos(1.570796)
Return value: 0

Math.Floor


Useage: Math.Floor(Number value)
Returns: Number
Description: Removes the decimal at a number
Code example: Math.Floor(0.1)
Return value: 0
Code example: Math.Floor(1.1)
Return value: 1
Code example: Math.Floor(5.9)
Return value: 5

Math.Max


Useage: Math.Max(Number a, Number b)
Returns: Number
Description: Returns the biggest number
Code example: Math.Max(0.1, 1)
Return value: 1
Code example: Math.Max(5, 2)
Return value: 5
Code example: Math.Max(10, 10)
Return value: 10

Math.Min


Useage: Math.Min(Number a, Number b)
Returns: Number
Description: Returns the smallest number
Code example: Math.Min(0.1, 1)
Return value: 0.1
Code example: Math.Min(5, 2)
Return value: 2
Code example: Math.Min(10, 10)
Return value: 10

Math.Neg


Useage: Math.Neg(Number val)
Returns: Number
Description: Returns the value entered converted to a negative number
Code example: Math.Neg(1)
Return value: -1
Code example: Math.Neg(-1)
Return value: -1
Code example: Math.Neg(0)
Return value: 0

Math.Pow


Useage: Math.Pow(Number val, Number power)
Returns: Number
Description: Returns a number with the power of the suplied numbers.
Code example: Math.Pow(2, 1)
Return value: 2
Code example: Math.Pow(2, 5)
Return value: 32
Code example: Math.Pow(2, 10)
Return value: 1024

Math.Random


  
Useage: Math.Random()
Returns: Number
Description: Returns a random number between 0 and 1.
Code example: Math.Random()
Return value: 0.1
 
 
Useage: Math.Random(Number max)
Returns: Number
Description: Returns a random number between 0 and max.
Code example: Math.Random(100)
Return value: 5
 
 
Useage: Math.Random(Number min, Number max)
Returns: Number
Description: Returns a random number between min and max.
Code example: Math.Random(0, 100)
Return value: 13

Math.Sign


Useage: Math.Sign(Number val)
Returns: Number
Description: Returns the entered number clamped between -1 and 1 (-1, 0, 1)
Code example: Math.Sign(1234)
Return value: 1
Code example: Math.Sign(-1234)
Return value: -1
Code example: Math.Sign(0)
Return value: 0

Math.Sin


Useage: Math.Sin(Number rad)
Returns: Number
Description: Returns a number from -1 to 1 depending on the radians you enter.
Code example: Math.Sin(3.141593)
Return value: 0
Code example: Math.Sin(-6.283186)
Return value: 0
Code example: Math.Sin(1.570796)
Return value: 1

Math.Sqrt


Useage: Math.Sqrt(Number val)
Returns: Number
Description: Returns the root of a number
Code example: Math.Sqrt(1)
Return value: 1
Code example: Math.Sqrt(9)
Return value: 3
Code example: Math.Sqrt(25)
Return value: 5

Math.Tan


Useage: Math.Tan(Number value)
Returns: Number
Description: Return the tangent.
Code example: Math.Tan(3.141593)
Return value: 0
Code example: Math.Tan(-6.283186)
Return value: 0
Code example: Math.Tan(1.570796)
Return value: -9670099380792.1836

Math.ToDegrees


Useage: Math.ToDegrees(Number rad)
Returns: Number
Description: Returns the value entered converted to a degrees number
Code example: Math.ToDegrees(1.570796)
Return value: 90
Code example: Math.ToDegrees(3.141593)
Return value: 180
Code example: Math.ToDegrees(6.283186)
Return value: 360

Math.ToRadians


Useage: Math.ToRadians(Number deg)
Returns: Number
Description: Returns the value entered converted to a radians number
Code example: Math.ToRadians(90)
Return value: 1.570796
Code example: Math.ToRadians(180)
Return value: 3.141593
Code example: Math.ToRadians(360)
Return value: 6.283186