# Rounding > How does each rounding mode change a number? Round to decimals or significant figures and see what each of six rounding modes gives. Round a number to decimal places or significant figures and compare six rounding modes side by side, from half up to banker’s rounding. - Page: https://how.box/rounding/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/rounding/?number={number}&basis={basis}&decimals={decimals}&figures={figures}&mode={mode} - `number` (number -1e12 to 1e12): Number. Example: `2.5`. - `basis` (decimals or significant): Round to decimal places or significant figures. Example: `decimals`. - `decimals` (whole number 0 to 12): Decimal places (basis decimals). Example: `0`. - `figures` (whole number 1 to 12): Significant figures (basis significant). Example: `3`. - `mode` (half_up, half_even, down, up, toward_zero or away): Rounding mode. Example: `half_up`. Example answer: https://how.box/rounding/?number=2.5&basis=decimals&decimals=0&figures=3&mode=half_up A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `rounding_calculate`: Rounding: Half up means ties away from zero; down and up mean toward negative and positive infinity. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rounding_calculate","arguments":{"number":2.5,"basis":"decimals","decimals":0,"figures":3,"mode":"half_up"}}}` - GET: https://how.box/mcp/run/rounding_calculate?number=2.5&basis=decimals&decimals=0&figures=3&mode=half_up ## How it works Rounding replaces a number with a nearby value at a chosen precision. Decimal places count positions after the point; significant figures count from the first nonzero digit. Half up here means ties away from zero: ±2.5 becomes ±3. Half even sends ties to the even neighbour: 2.5 becomes 2 and 3.5 becomes 4. Down and up follow IEEE 754 direction terminology and mean toward negative and positive infinity. Toward zero discards the fractional part; away from zero chooses the next larger magnitude. Decimal shifting uses the shortest decimal representation, so 1.005 rounds half up to 1.01 at two decimal places. Inputs are JavaScript numbers, limited to ±10¹²; this is not an arbitrary-precision decimal engine. ## FAQ **What is banker’s rounding?** Half even: an exact halfway value goes to the neighbour with an even final digit. **Does down always mean toward zero?** No. Down means toward negative infinity: −2.1 becomes −3 at zero decimal places. **How are negative ties handled?** Half up sends them away from zero. Half even chooses the even neighbour. **How do significant figures differ from decimals?** They start at the first nonzero digit, so 1234 to two significant figures becomes 1200. **Why does 1.005 round to 1.01?** The half-up calculation uses the visible decimal representation rather than its nearby binary approximation. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)