Round-to-ndigits

Not Reviewed
Equation / Last modified by AndrewS on 2016/11/08 15:41
`"Result" = `
Rating
ID
MichaelBartmess.Round-to-ndigits
UUID
661e65c5-63c8-11e4-a9fb-bc764e2038f2

The Round-to-ndigits calculator rounds an input number to the number of decimal places specified by n. The rounding operation rounds up at 5 in the n+1st place, treating negative numbers as absolute values.

EXAMPLES:

Round-to-n digits[n = 2, x=1.445] = 1.45

Round-to-n digits[n = 2, x = 1.49999999999] = 1.50

Round-to-n digits[n = 4, x = 1.49999999999] = 1.5000

Round-to-n digits[n = 3, x = -1.777777] =  -1.778

Additional Resources:

The Round-to-Integer rounds an input number to the nearest integer (CLICK HERE).