/
Math Functions

Math Functions

Math library of SIL.

Functions Summary

  • absReturns the absolute value of a number. The absolute value of a number is the number without its sign.
  • ceilingReturns number rounded up, away from zero, to the nearest multiple of significance.
  • cosReturns the cosine of the given angle.
  • degreesConverts radians to degrees.
  • e numberConstant function. Returns the value of e.
  • expReturns e raised to the power of number.
  • factReturns the factorial of a number.
  • floorRounds number down, toward zero, to the nearest multiple of significance.
  • formatNumberFormats a number according to a format string.
  • lnReturns the natural logarithm of a number.
  • logReturns the logarithm of a number to the base you specify.
  • piConstant function. Returns the value of Pi.
  • powerReturns the number raised to the desired power.
  • radiansConverts degrees into radians.
  • randReturns a random number between 0.00 and 1.00.
  • randomReturns a random int value between 0 (inclusive) and the specified value (exclusive). This works for integers only.
  • romanConverts an Arabic numeral to Roman numeral, as text, of course.
  • roundRounds a number to a specified number of digits.
  • signDetermines the sign of a number (signum).
  • sinReturns the sine of the given angle.
  • sqrtReturns a positive square root.
  • tanReturns the tangent of an angle, provided in radians.
  • truncTruncates a number to a specified precision.
  • bitwise_andTakes two numbers as operands and does AND on every bit of two numbers.
  • bitwise_lshiftTakes two numbers, left shifts the bits of the first operand, the second operand decides the number of places to shift.
  • bitwise_notTakes one number and inverts all bits of it.
  • bitwise_orTakes two numbers as operands and does OR on every bit of two numbers.
  • bitwise_rshiftTakes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.
  • bitwise_rushiftTakes two numbers, right shifts the bits of the first operand.The vacant leftmost position is filled with 0 instead of the sign bit.
  • bitwise_xorTakes two numbers as operands and does XOR on every bit of two numbers.

Related content

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.