How to Format a Number, Round to the Decimal After the Dot

This article explains how to format a number and round to the decimal after the dot.

Goal: we want to round the result from 3.7313432835820897 to a number with 2 decimals after the dot = 3.73

Initial data:

{

  "row_total": 250,

  "qty": 67

}

 

Add mapper to the existing transformer: Format: Number -> Decimals* - 2 -> DecimalPoint* - . -> ThousandSeparator* - ,

And add mapper -> Cast: Float, so the resulting string becomes a number 3.73