Campbell Scientific CR3000 Micrologger User Manual
Page 501

Appendix A. CRBasic Programming Instructions
501
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)
Note LOGN = LOG(X) / LOG(N)
LOG10
The LOG10 function returns the base‐10 logarithm of a number.
Syntax
x = LOG10 (number)
MOD
Modulo divide. Divides one number into another 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)
RectPolar
Converts from rectangular to polar coordinates.
Syntax
RectPolar(Dest, Source)
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)