Rounding calculator

Rounds using JavaScript number formatting.

Your inputs

Use the units shown.

Rounded value
12.35

Your calculation
How is this calculated?

Rounds using JavaScript number formatting. Binary floating-point ties can differ from exact decimal accounting rules.

  • Rounded value = Number(Number.toFixed(Decimal places))

Try an example

Worked example

Rounded value: 12.35

Inputs
  • Number: 12.345
  • Decimal places: 2

Compare inputs

Rounded value: 12.35

Inputs
  • Number: 12.3456
  • Decimal places: 2
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.