EasyManua.ls Logo

Campbell LoggerNet - Order of Precedence; Predefined Constants; Predefined Time Constants

Default Icon
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 5. Real-Time Tools
5.2.1.4.2 Order of Precedence
When processing mathematical expressions, the order of precedence is:
Anything inside parentheses ( )
Exponentiation ^
Negation (unary) –
Multiplication *, division /
Modulo (remainder) MOD
Addition +, subtraction –
When consecutive operators have the same priority, the expression evaluates
from left to right. This means that an expression such as a-b-c is evaluated as
(a-b)-c.
5.2.1.4.3 Predefined Constants
Constant Description
e 2.718282
PI 3.141593
True –1
False 0
NOPLOT NAN
NAN NAN (not a number)
INF INF (non-finite number)
5.2.1.4.4 Predefined Time Constants
These predefined time constants can be useful as a parameter for the Functions
with State, where the interval parameter must be specified in nanoseconds.
Constant Description
nsecPerUSec Number of nanoseconds in a microsecond
nsecPerMSec Number of nanoseconds in a millisecond
nsecPerSec Number of nanoseconds in a second
nsecPerMin Number of nanoseconds in a minute
nsecPerHour Number of nanoseconds in an hour
5-47

Table of Contents