Example
This example demonstrates how to use the Rounding Function to round numeric values like Temperature and Pressure, to a given precision.
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Agent onto the canvas. Link the input endpoint to the sensor data and the output to the printer.
Save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. In this case, keep the default Collection.
Step 3: Configure Settings
In the Grid add a line for each attribute that is to be rounded by clicking the Plus (+) button.
Select the Input Column that is to be rounded
Specify the required Precision value
Apply the changes.
Step 4: Results
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.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated