Appendix A. CRBasic Programming Instructions
476
Floor
Roundsavaluetoalowerinteger.
Syntax
variable = Floor(Number)
FRAC
Returnsthefractionalpartofanumber.
Syntax
x = FRAC(source)
INTorFIX
Returntheintegerportionofanumber.
Syntax
x = INT(source)
x = Fix(source)
INTDV
Performsanintegerdivisionoftwonumbers.
Syntax
X INTDV Y
LNorLOG
Returnsthenaturallogarithmofanumber.LnandLogperformthesame
function.
Syntax
x = LOG(source)
x = LN(source)
Note LOGN = LOG(X) / LOG(N)
LOG10
TheLOG10functionreturnsthebase‐10logarithmofanumber.
Syntax
x = LOG10 (number)
MOD
Modulodivide.Dividesonenumberintoanotherandreturnsonlythe
remainder.
Syntax
result = operand1 MOD operand2
PWR
Performsanexponentiationonavariable.Samefunctionalityas^operator
(6.6.1).
Syntax
PWR(X, Y)
RectPolar
Convertsfromrectangulartopolarcoordinates.
Syntax
RectPolar(Dest, Source)