Skip to content

Round numbers

Description

The Round Numbers activity modifies numeric values in selected columns by applying rounding techniques such as Round, Ceil, and Floor. It also allows control over decimal precision and whether to retain original columns in the output.

This is especially useful when preparing financial, statistical, or aggregated data for presentation, comparison, or export.

Use this activity to:

  • Round off floating-point numbers to a fixed decimal scale
  • Apply ceiling or floor operations to values (e.g., pricing, score normalization)
  • Add transformed versions of numeric columns while keeping the original values intact

Use case: In a pricing dataset, discount percentages and price amounts may have several decimal places. This activity can round prices to 2 decimal points and discounts to whole numbers using the appropriate rounding method.

Input

TypeDescription
DataTabular data with numeric fields to be rounded.

Output

Output TypeFormatDescription
DataTableThe dataset with transformed (rounded) values.

Configuration Fields

Field NameDescription
Column MapDefine one or more column transformation rules. Each rule includes:
  • Column Name – The column to apply rounding to
  • Rounding Method – One of:
    Round – Traditional mathematical rounding
    Ceil – Rounds up to the nearest value
    Floor – Rounds down to the nearest value
  • Precision – Number of decimal places to retain
Include OriginalIf enabled, the original columns are preserved alongside their rounded counterparts. If disabled, only rounded versions are kept.

Sample Input

IDPrice (Original)Discount
112.3455.9
299.99910.2
345.6788.5

Sample Configuration

Column NameRounding MethodPrecision
Price (Original)Round2
DiscountFloor0
Include OriginalEnabled

The Price (Original) column is rounded to 2 decimals using standard rounding, while Discount is floored to the nearest integer.

Sample Output

IDPriceDiscount
112.355
2100.0010
345.688

Column names in the output may match the originals or appear as new columns based on your Include Original setting.