Please enable JavaScript to view this site.

DAQFactory User's Guide

Navigation: 4 Expressions > 4.12 Expression Operator / Function Reference

4.12.5 Math functions

Scroll Prev Top Next More

Many mathematical functions are supported:

Abs(x)

Absolute Value

Ceil(x)

First integer above the current value (round up)

Floor(x)

First integer below the current value (round down)

Exp(x)

Exponential

Ln(x)

Natural Log

Log(x)

Log base 10

Examples:

Abs(-1) returns 1

Abs(1) returns 1

 

Ceil(5.3) returns 6

Ceil(5) returns 5

Ceil(-1.3) returns -1

 

Floor(5.3) returns 5

Floor(5) returns 5

Floor(-1.3) returns -2

 

Exp(3) returns 20.86

 

Log(3) returns 0.477

 

Ln(3) returns 1.099

Note that you can pass arrays into these functions as well:

Ceil({5.3,5,-1.3}) returns {6,5,-1}