Skip to content

Round Numbers

Description

This activity rounds the numerical values in the specified columns using different rounding methods such as Round, Ceil, and Floor. It also allows setting precision for rounding and choosing whether to keep the original values.

Input

Data only

Output

Transformed Data

Configuration Fields

  • ColumnMap Defines the set of columns and actions whose values should be rounded.
  • Column Name Name of the column to be rounded. Rounding Method The rounding method for the column (Round,CeilFloor).
  • Precision The number of decimal places to round to.
  • Include Original Whether to keep the original columns along with the transformed ones.

Sample Input

IDPrice (Original)Discount
112.3455.9
299.99910.2
345.6788.5

Sample Configuration

alt text

Sample Output

IDPriceDiscount
112.355
2100.0010
345.688