Avrundar ett tal till ett angivet antal siffror.
Syntax
AVRUNDA(tal;num_digits)
Tal Är det tal som du vill avrunda.
Decimaler Anger antalet siffror som du vill avrunda talet till.
Anmärkningar
-
Om decimaler är större än 0 avrundas tal till det angivna antalet decimaler.
-
Om num_digits är 0 avrundas talet till närmaste heltal.
-
Om num_digits är mindre än 0 avrundas talet till vänster om decimalkommat.
Exempel
Formel |
Beskrivning (resultat) |
---|---|
=AVRUNDA(2,15; 1) |
Avrundar 2,15 till en decimal (2,2) |
=AVRUNDA(2,149; 1) |
Avrundar 2,149 till en decimal (2,1) |
=AVRUNDA(-1,475; 2) |
Avrundar -1,475 till två decimaler (-1,48) |
=AVRUNDA(21,5; -1) |
Avrundar 21,5 till en decimal till vänster om decimalkommat (20) |