What this calculator does
Round a number to the nearest, lower, or upper multiple of another number.
How it works
The calculator evaluates rounded value = rounding-rule(value ÷ multiple) × multiple. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
3-
?value=Number to roundNumber · Required · Default: 137
-
?multiple=MultipleNumber · Required · Default: 25
-
?direction=DirectionChoice · Required · Default: nearest · Accepted values: nearest, down, up, towardZero
Outputs
3-
roundedRounded valueNumber · Primary output
-
differenceChange from originalNumber
-
quotientOriginal ÷ multipleNumber
Inputs and results
The inputs are Number to round, Multiple, Direction. Results include Rounded value, Change from original, Original ÷ multiple.