Example
This example demonstrates how to use the Rounding Function to round numeric values like Temperature and Pressure, to a given precision.
Drag the Agent onto the canvas. Link the input endpoint to the sensor data and the output to the printer.

Save the Data Stream.

Select the Agent and click Configure. In this case, keep the default Collection.

In the Grid add a line for each attribute that is to be rounded by clicking the Plus (+) button.
- 1.Select the Input Column that is to be rounded
- 2.Specify the required Precision value
Apply the changes.

Save the Data Stream and publish it.

Let's look at the Live Data View. Observe that the numeric values have been rounded as per the requested precision. A complete example and the files used are provided below.
File | Link | Security Key |
---|---|---|
Data Stream | Rounding Function Example.xuc | C0mp|ex123 |
Last modified 1yr ago