Please notice that MOD is not a function, but rather an operator, i.e., in ALG
mode, MOD should be used as y MOD x, and not as MOD(y,x). Thus, the
operation of MOD is similar to that of +, -, *, /.
As an exercise, verify that 15 MOD 4 = 15 mod 4 = residual of 15/4 = 3
Absolute value, sign, mantissa, exponent, integer and fractional parts
MANT(x) : determines the mantissa of a number based on log
XPON(x) : determines the power of 10 in the number
As an exercise, verify that ABS(-3) = |-3| = 3, SIGN(-5) = -1, MANT(2540) =
2.540, XPON(2540) = 3, IP(2.35) = 2, FP(2.35) = 0.35.
Rounding, truncating, floor, and ceiling functions
TRNC(x,y) :!truncate y to x decimal places
FLOOR(x) : closest integer that is less than or equal to x
As an exercise, verify that RND(1.4567,2) = 1.46, TRNC(1.4567,2) = 1.45,
FLOOR(2.3) = 2, CEIL(2,3) = 3
Radians-to-degrees and degrees-to-radians functions
D R (x)
R D (x)
As an exercise, verify that D R(45) = 0.78539 (i.e., 45
R D(1.5) = 85.943669.. (i.e., 1.5
Option 11. Special functions... in the MTH menu includes the following
: calculates the absolute value, |x|
: determines the sign of x, i.e., -1, 0, or 1.
: determines the integer part of a real number
: determines the fractional part of a real number
: rounds up y to x decimal places
: closest integer that is greater than or equal to x
: converts degrees to radians
: converts radians to degrees.