04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A. CRBasic Programming Instructions<br />

Floor<br />

Rounds a value to a lower integer.<br />

Syntax<br />

variable = Floor(Number)<br />

FRAC<br />

Returns the fractional part of a number.<br />

Syntax<br />

x = FRAC(source)<br />

INT or FIX<br />

Return the integer portion of a number.<br />

Syntax<br />

x = INT(source)<br />

x = Fix(source)<br />

INTDV<br />

Performs an integer division of two numbers.<br />

Syntax<br />

X INTDV Y<br />

LN or LOG<br />

Returns the natural logarithm of a number. Ln and Log perform the same<br />

function.<br />

Syntax<br />

x = LOG(source)<br />

x = LN(source)<br />

Note LOGN = LOG(X) / LOG(N)<br />

LOG10<br />

The LOG10 function returns the base‐10 logarithm of a number.<br />

Syntax<br />

x = LOG10 (number)<br />

MOD<br />

Modulo divide. Divides one number into another and returns only the<br />

remainder.<br />

Syntax<br />

result = operand1 MOD operand2<br />

PWR<br />

Performs an exponentiation on a variable. Same functionality as ^ operator<br />

(6.6.1).<br />

Syntax<br />

PWR(X, Y)<br />

RectPolar<br />

Converts from rectangular to polar coordinates.<br />

Syntax<br />

RectPolar(Dest, Source)<br />

498

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!