# Math



# Functions

- **function-acos** - Returns the angle whose cosine is the value passed as the argument.
- **function-arraymedian** - Calculates the Median value of items in an array.
- **function-asin** - Determines the arcSine of a number. The arcSine is the angle whose sine is number.
- **function-atn** - ArcTangent function. The arcTangent is the angle whose tangent is number.
- **function-bitand** - Performs a bitwise logical AND operation.
- **function-bitmaskclear** - Performs a bitwise mask clear operation.
- **function-bitmaskread** - Performs a bitwise mask read operation.
- **function-bitmaskset** - Performs a bitwise mask set operation.
- **function-bitnot** - Performs a bitwise logical NOT operation.
- **function-bitor** - Performs a bitwise logical OR operation.
- **function-bitshln** - Performs a bitwise shift-left, no-rotation operation.
- **function-bitshrn** - Performs a bitwise shift-right, no-rotation operation.
- **function-bitxor** - Performs a bitwise logical XOR operation.
- **function-ceiling** - Determines the closest integer that is greater than a specified number.
- **function-cos** - Calculates the cosine of an angle that is entered in radians. A number; the cosine of the angle.
- **function-exp** - Calculates the exponent whose base is e that represents number.
- **function-formatbasen** - String Converts number to a string, in the base specified by radix. For example: FormatBaseN(1024,16) 
- **function-inputbasen** - Converts string, using the base specified by radix, to an integer. For example: InputBaseN(&amp;quot;3ff&amp;quot;,16) 
- **function-log** - Calculates the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
- **function-log10** - Calculates the logarithm of number, to base 10.
- **function-pi** - Gets the mathematical constant p, accurate to 15 digits. The number 3.14159265358979.
- **function-precisionevaluate** - Evaluates one or more string expressions.
- **function-randrange** - Generates a random integer between two specified numbers.
- **function-sgn** - Determines the sign of a number.
- **function-sin** - Calculates the sine of an angle that is entered in radians.
- **function-sqr** - Calculates the square root of a number.
- **function-tan** - Calculates the tangent of an angle that is entered in radians.

# Methods

- **method-numeric-acos** - Returns the angle whose cosine is the value passed as the argument.
- **method-numeric-asin** - Determines the arcSine of a number. The arcSine is the angle whose sine is number.
- **method-numeric-atn** - ArcTangent function. The arcTangent is the angle whose tangent is number.
- **method-numeric-bitand** - Performs a bitwise logical AND operation.
- **method-numeric-bitmaskclear** - Performs a bitwise mask clear operation.
- **method-numeric-bitmaskread** - Performs a bitwise mask read operation. Returns an integer, created from length bits of number, beginning at start.
- **method-numeric-bitmaskset** - Performs a bitwise mask set operation.
- **method-numeric-bitnot** - Performs a bitwise logical NOT operation.
- **method-numeric-bitor** - Performs a bitwise logical OR operation.
- **method-numeric-bitshln** - Performs a bitwise shift-left, no-rotation operation.
- **method-numeric-bitshrn** - Performs a bitwise shift-right, no-rotation operation.
- **method-numeric-bitxor** - Performs a bitwise logical XOR operation.
- **method-numeric-ceiling** - Determines the closest integer that is greater than a specified number.
- **method-numeric-cos** - Calculates the cosine of an angle that is entered in radians. A number; the cosine of the angle.
- **method-numeric-exp** - Calculates the exponent whose base is e that represents number. The constant e equals 2.71828182845904, the base of the natural logarithm. This function is the inverse of Log, the natural logarithm of number.
- **method-numeric-log** - Calculates the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
- **method-numeric-log10** - Calculates the logarithm of number, to base 10.
- **method-numeric-sgn** - Determines the sign of a number.
- **method-numeric-sin** - Calculates the sine of an angle that is entered in radians.
- **method-numeric-sqr** - Calculates the square root of a number.
- **method-numeric-tan** - Calculates the tangent of an angle that is entered in radians.

# Objects

- **object-number** - 

# Guides

- **mathematical-precision** - Learn about the switch from double to BigDecimal in Lucee 6 for more precise mathematical operations. This guide provides information on how to change the default behavior if needed.
- **operators** - Mathematical, Logical, Ternary, Comparison, String and Elvis Operators