Avrund kalkulator
Avrund et tall til et hvilket som helst talltall opp og ned.
Resultatene blir oppdaterte mens du skriver.
Om denne kalkulatoren
A rounding calculator rounds a number to a chosen number of decimal places (or significant figures) and shows four results side by side: the standard nearest-value rounding, always-up (ceiling), always-down (floor), and truncation, so you can compare every option at once.
Standard rounding looks at the digit just past the cut-off — 5 or more rounds up, less than 5 rounds down — so 3.14159 to two decimal places is 3.14. The other columns force a direction: for 2.673 the nearest and floor both give 2.67 while the ceiling gives 2.68, and truncation simply drops the extra digits to 2.67 without rounding. Switching the mode to significant figures counts meaningful digits from the first non-zero one instead, and a negative number of places rounds to the left of the point, so 3457 to −2 places becomes 3500.
Rounding matters for money, measurements, reporting to a sensible precision, and avoiding false accuracy in results. Seeing nearest, up, down and truncated together makes it clear how much a value shifts depending on which rule you apply.
Ofte stilte spørsmål
Hvordan virker avrunding til desimalplasser?
Look at the digit just past the cut-off: 5 or more rounds up, less than 5 rounds down. 3.14159 to two places is 3.14.
Hva gjør et negativt antall desimalplasser?
Den avrunder til venstre for kommaet: −1 avrunder til nærmeste tier, −2 til nærmeste hundre. 3457 til −2 plasser er 3500.
Hva er forskjellen mellom avrunding opp og avrunding ned?
Avrunding (tak) flytter seg alltid til den største verdien og avrunder nedover (gulv) til den minste, mens nærmeste valg gir 2, 68. For 2, 673 til to steder gir nærmeste og laveste 2, 67, men opp gir 2, 68.
Hva viser det trunkerte resultatet?
It cuts off the digits beyond your chosen place without rounding at all. 2.673 truncated to two decimal places is 2.67, even though nearest rounding also gives 2.67 here and 2.678 would truncate to 2.67 while rounding to 2.68.
Hvordan avrunder jeg signifikante sifre i stedet for desimaler?
Bytte modus fra desimaler til signifikante sifre. En presisjon på 3 holder de tre første meningsrike sifrene, så 0,0045213 blir 0,00452.
Gjør avrunding alltid et tall større?
Det er bare for positive tall. Avrunding betyr at det er mot uendelig positiv verdi. 2,7 avrundet opp til et helt tall er −2, som er større, ikke mindre.
API — bruk denne kalkulatoren fra kode
Kall denne kalkulatoren som et fritt JSON- endepunkt – ikke nødvendig. Send feltverdiene nedenfor som spørreparametre eller JSON. Alt du utelater bruker samme standard denne siden er fylt med. En ukjent parameter er en 400, aldri en stille null. Les alle API- doc- er →
Endepunkt
GET https://calculator.free/api/v1/rounding/
curl
curl "https://calculator.free/api/v1/rounding/?number=3.14159&places=2&mode=decimals"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/rounding/?" + new URLSearchParams({
"number": "3.14159",
"places": "2",
"mode": "decimals"
}));
const data = await r.json();
console.log(data.results);
Resultatene er estimater bare for generell veiledning, ikke finansiell, medisinsk eller skattemessig rådgivning.