Numbers
Functions
- Abs()
Absolute-value function. The absolute value of a number is the number without its sign.
- ACos()
Returns the angle whose cosine is the value passed as the argument.
- ASin()
Determines the arcSine of a number. The arcSine is the angle whose sine is number.
- Atn()
ArcTangent function. The arcTangent is the angle whose tangent is number.
- BitAnd()
Performs a bitwise logical AND operation.
- BitMaskClear()
Performs a bitwise mask clear operation.
- BitMaskRead()
Performs a bitwise mask read operation.
- BitMaskSet()
Performs a bitwise mask set operation.
- BitNot()
Performs a bitwise logical NOT operation.
- BitOr()
Performs a bitwise logical OR operation.
- BitSHLN()
Performs a bitwise shift-left, no-rotation operation.
- BitSHRN()
Performs a bitwise shift-right, no-rotation operation.
- BitXor()
Performs a bitwise logical XOR operation.
- Ceiling()
Determines the closest integer that is greater than a specified number.
- Cos()
Calculates the cosine of an angle that is entered in radians. A number; the cosine of the angle.
- DecimalFormat()
Converts a number to a decimal-formatted string.
- Exp()
Calculates the exponent whose base is e that represents number.
- Fix()
Converts a real number to an integer.
- Floor()
Calculates the closest integer that is smaller than number.
- FormatBaseN()
String Converts number to a string, in the base specified by radix. For example: FormatBaseN(1024,16)
- InputBaseN()
Converts string, using the base specified by radix, to an integer. For example: InputBaseN("3ff",16)
- Int()
Calculates the closest integer that is smaller than number.
- IsNumeric()
Determines if the object represents a numeric
- IsNumericDate()
Evaluates whether a real number is a valid representation of a date (date/time object).
- Log()
Calculates the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
- Log10()
Calculates the logarithm of number, to base 10.
- LSIsNumeric()
Determines whether a string is a valid representation of a number in the current locale.
- LSNumberFormat()
Formats a number to the given format mask in the current locale
- LSParseNumber()
Converts a string that is a valid numeric representation in the current locale into a formatted number.
- Max()
Determines the greater of two numbers.
- Min()
Determines the lesser of two numbers.
- NumberFormat()
Creates a custom-formatted number value
- ParseNumber()
Parses the string argument as a numeric value.
- Pi()
Gets the mathematical constant p, accurate to 15 digits. The number 3.14159265358979.
- PrecisionEvaluate()
Evaluates one or more string expressions.
- Rand()
Generates a pseudo-random number in the range 0 - 1.
- Randomize()
Seeds the pseudo-random number generator with an integer number, ensuring repeatable number patterns.
- RandRange()
Generates a random integer between two specified numbers.
- Round()
Rounds a number to the closest integer.
- Sgn()
Determines the sign of a number.
- Sin()
Calculates the sine of an angle that is entered in radians.
- Sqr()
Calculates the square root of a number.
- Tan()
Calculates the tangent of an angle that is entered in radians.
- ToNumeric()
Converts given value to a number
- Val()
Converts numeric characters that occur at the beginning of a string to an number.
Methods
- any.numberFormat()
Creates a custom-formatted number value. For international number formatting use LSNumberFormat. [mask - quickly] _,9 Digit placeholder; . decimal point; 0 Pads with zeros; ( ) less than zero, puts parentheses around the mask + plus sign before positive number minus before negative - a space before positive minus sign before negative , Separates every third decimal place with a comma
- numeric.abs()
Absolute-value function. The absolute value of a number is the number without its sign.
- numeric.aCos()
Returns the angle whose cosine is the value passed as the argument.
- numeric.aSin()
Determines the arcSine of a number. The arcSine is the angle whose sine is number.
- numeric.atn()
ArcTangent function. The arcTangent is the angle whose tangent is number.
- numeric.bitAnd()
Performs a bitwise logical AND operation.
- numeric.bitMaskClear()
Performs a bitwise mask clear operation.
- numeric.bitMaskRead()
Performs a bitwise mask read operation. Returns an integer, created from length bits of number, beginning at start.
- numeric.bitMaskSet()
Performs a bitwise mask set operation.
- numeric.bitNot()
Performs a bitwise logical NOT operation.
- numeric.bitOr()
Performs a bitwise logical OR operation.
- numeric.bitSHLN()
Performs a bitwise shift-left, no-rotation operation.
- numeric.bitSHRN()
Performs a bitwise shift-right, no-rotation operation.
- numeric.bitXor()
Performs a bitwise logical XOR operation.
- numeric.ceiling()
Determines the closest integer that is greater than a specified number.
- numeric.cos()
Calculates the cosine of an angle that is entered in radians. A number; the cosine of the angle.
- 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.
- numeric.fix()
Converts a real number to an integer.
- numeric.floor()
Calculates the closest integer that is smaller than number.
- numeric.int()
Calculates the closest integer that is smaller than number.
- numeric.log()
Calculates the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
- numeric.log10()
Calculates the logarithm of number, to base 10.
- numeric.max()
Determines the greater of two numbers.
- numeric.min()
Determines the lesser of two numbers.
- numeric.round()
Rounds a number to the closest integer.
- numeric.sgn()
Determines the sign of a number.
- numeric.sin()
Calculates the sine of an angle that is entered in radians.
- numeric.sqr()
Calculates the square root of a number.
- numeric.tan()
Calculates the tangent of an angle that is entered in radians.
Objects
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.