Real-Time Expressions: Rounding Decimals

Overview

Round the number of decimal places in a data stream to something more readable.

Syntax

=math.round([data stream], numberDecimalPlaces)

Example

=math.round([voltage], 1)


In the example above, the voltage :zap: data stream has numbers out to the 9th decimal place. 


Applying the expression, =math.round([voltage :zap:], 1), rounds the number of decimal places to one.

Feedback and Knowledge Base