Enhanced Rounding (Round) Block with Decimal Place Control

Problem: The current Rounding (Round) block only rounds to the nearest whole number (integer). This limits its usability in situations where more precise rounding, such as to a specific number of decimal places, is required.

Proposed Solution: Modify the Rounding (Round) block to include an input or dropdown menu that allows the user to specify the desired number of decimal places for rounding.

Temporary Solution: 3 Blocks

  1. * 100
  2. Rounding (Round)
  3. / 100
1 Like

What about Truncate Float? Is that what you’re looking for or do you specifically need rounding?

Unfortunately, Truncate Float can induce errors in certain case: 1.566 became 1.56 while rounding is 1.57.

Got it, I’ll add a float rounding block.

Thank you :slightly_smiling_face: