c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

c0de/math ​

The math library has number functions and random numbers and needs INCLUDE c0de/math.

Funktionen ​

  • ABS: Returns the absolute value of a number.
  • SGN: Returns the sign of a number.
  • SQR: Returns the square root of a number.
  • EXP: Returns e raised to the power of a number.
  • LOG: Returns the natural logarithm of a number.
  • SIN: Returns the sine of an angle.
  • COS: Returns the cosine of an angle.
  • TAN: Returns the tangent of an angle.
  • ATN: Returns the arc tangent of a number.
  • INT: Rounds a number down to an integer.
  • FIX: Cuts off the decimal places of a number.
  • ROUND: Rounds a number to the nearest integer.
  • TO_FLOAT: Converts a number to a FLOAT.
  • DIV: Divides two integers and rounds towards 0.
  • RANDOM: Returns a random number between 0 and 1.
  • RANDOMIZE: Sets the seed of the random number generator.