beautypg.com

A.6.7 arithmetic functions – Campbell Scientific CR3000 Micrologger User Manual

Page 500

background image

Appendix A. CRBasic Programming Instructions

500 

 

 

SINH 
Returns the hyperbolic sine of an expression or value. 

Syntax 

x = SINH(Expr)

TAN 
Returns the tangent of an angle. 

Syntax 

x = TAN(source)

TANH 
Returns the hyperbolic tangent of an expression or value. 

Syntax 

x = TANH(Source)

A.6.7 Arithmetic Functions

ABS 
Returns the absolute value of a number. 

Syntax 

x = ABS(source)

ABSLong 
Returns the absolute value of a number.  Returns a value of data type Long when 
the expression is type Long. 

Syntax 

x = ABS(source)

Ceiling 
Rounds a value to a higher integer. 

Syntax 

variable = Ceiling(Number)

EXP 
Returns e (the base of natural logarithms) raised to a power. 

Syntax 

x = EXP(source)

Floor 
Rounds a value to a lower integer. 

Syntax 

variable = Floor(Number)

FRAC 
Returns the fractional part of a number. 

Syntax 

x = FRAC(source)

INT or FIX 
Return the integer portion of a number. 

Syntax 

x = INT(source)
x = Fix(source)