ML-x17 DATA LOGGER MANUAL
Manufacturers of low power instruments
page 51
4.18.5.12
torad(degrees)
converts degrees to radians
4.18.5.13
todeg(radians)
converts radians to degrees
4.18.5.14
floor(x)
returns the largest integer not greater than x, e
xample: floor(10.7 returns 10
4.18.5.15
ceil(x)
returns the smallest integer not less than x, example: ceil(10.3) returns 11
4.18.5.16
round(x)
rounds to the nearest integer
4.18.6 Supported mathematical functions with multiple
arguments:
4.18.6.1
atan2(x;y)
return the arc tangent of x/y
4.18.6.2
mod(x;y)
return the reminder of x/y
4.18.6.3
pow(x;y)
returns x to the power of y
4.18.6.4
clip(x;min;max)
returns x clipped between min & max
Example: clip(5;0;100) returns 5
Example: clip(-10;0;100) returns 0
Synonym:
If(x<min) return min; Else if(x>max) return max; Else return x
4.18.7 Supported comparisons with 2 arguments:
4.18.7.1
lt(x;y)
returns x if x smaller than y else return y
Example: lt(10;11) returns 10; Synonym: If (x<y) return x; else return y
4.18.7.2
le(x;y)
returns x if x smaller or equal than y else return y
Example: le(10;11) returns 10; Synonym: If (x<=y) return x; else return y
4.18.7.3
gt(x;y)
returns x if x greater than y else return y
Example: gt(10;11) returns 11; Synonym: If (x>y) return x; else return y
4.18.7.4
ge(x;y)
returns x if x greater or equal than y else return y