Skip to content

Math library ​

No description available

Functions ​

mnscript
number Math.Abs(number) 
  • Returns the absolute value of the specified number
mnscript
number Math.Acos(number) 
  • Returns the angle whose cosine is the given number
mnscript
number Math.Asin(number) 
  • Returns the angle whose sine is the given number
mnscript
number Math.Atan(number) 
  • Returns the angle whos tangent is the given number
mnscript
number Math.BinToInt(string) 
  • Converts a binary string to a number.
mnscript
number Math.Ceil(number) 
  • Returns the number provided, but rounded up to the nearest whole number
mnscript
number Math.Cos(number) 
  • Returns the cosine of the specified angle
mnscript
number Math.DegToRad(number) 
  • Converts the number of degrees provided into radians
mnscript
number Math.Floor(number) 
  • Returns the number provided, but rounded down to the nearest whole number
mnscript
string Math.IntToBin(number) 
  • Converts a number to a binary string.
mnscript
number Math.Log(number) 
  • return the natural logarithm of x (to base e).
mnscript
number Math.Max(number, number) 
  • Returns the largest of the two values provided
mnscript
number Math.Min(number, number) 
  • Returns the smallest of the two values provided
mnscript
number Math.RadToDeg(number) 
  • Converts the number of radians provided into degrees
mnscript
number Math.Random() 
  • Generates a random number between 0-1
  • Generates a random number inside the range (Inclusive).
mnscript
number Math.Round(number) 
  • Returns the number provided, but rounded to the nearest integer
mnscript
number Math.RoundTo(number, number) 
  • Returns the number provided to the number of decimal places provided
mnscript
number Math.Sin(number) 
  • Returns the sine of the specified angle
mnscript
number Math.Sqrt(number) 
  • Calculates the square root of the number provided
mnscript
number Math.Tan(number) 
  • Returns the tangent of the specified angle