Math Operations Quick Reference
The following table lists methods to perform mathematical operations.
Statement | Purpose | Reference |
---|---|---|
Abs |
Returns the absolute value of a number. |
|
Asc |
Returns an integer that corresponds to an ANSI character code. |
|
Atn |
Returns the arctangent of a number. |
|
Cos |
Returns the cosine of an angle. |
|
Exp |
Returns the value of e raised to a power. |
|
Fix |
Removes the fractional part of a number. |
|
Hex |
Returns the hexadecimal representation of a number. |
|
Int |
Returns the integer part of a number. |
|
Log |
Returns the natural logarithm of a value. |
|
Oct |
Returns the octal representation of a number. |
|
Randomize |
Creates a starting value for the random number generator. |
|
Rnd |
Returns a random number. |
|
Sgn |
Returns a value that identifies the sign of a number. |
|
Sin |
Returns the sine of an angle. |
|
Sqr |
Returns the square root of a number. |
|
Tan |
Returns the tangent of an angle. |