Specifications
Section 10. CRBASIC Programming Instructions
10-21
INT or FIX
Return the integer portion of a number.
Syntax
x = INT (source)
x = Fix (source)
INTDV
Performs an integer division of two numbers.
Syntax
X INTDV Y
LN or LOG
Returns the natural logarithm of a number. Ln and Log perform the same
function.
Syntax
x = LOG (source)
x = LN (source)
LOGN = LOG(X) / LOG(N)
LOG10
The LOG10 function returns the base 10 logarithm of a number.
Syntax
x = LOG10 (number)
MOD
Divides two numbers and returns only the remainder.
Syntax
result = operand1 MOD operand2
PWR
Performs an exponentiation on a variable. Same functionality as ^ operator
(6.6.1).
Syntax
PWR (X, Y)
Round
Rounds a value to a higher or lower number.
Syntax
variable = Round (Number, Decimal)
SGN
Finds the sign value of a number.
Syntax
x = SGN (source)
Sqr
Returns the square root of a number.
Syntax
x = SQR (number)
NOTE