Difference between revisions of "NL/Documentation/How Tos/Calc: functie AFRONDEN.NAAR.BOVEN"
From Apache OpenOffice Wiki
< NL | Documentation | How Tos
m (→Voorbeeld:) |
m |
||
Line 8: | Line 8: | ||
: geeft <tt>'''getal'''</tt> terug, afgerond (weg van nul) tot <tt>'''aantal'''</tt> plaatsen achter de komma. Als <tt>'''aantal'''</tt> wordt weggelaten of nul is, rondt de functie naar boven af naar een geheel getal. Als <tt>'''aantal'''</tt> negatief is, rondt de functie naar boven af naar de volgende <tt>'''10'''</tt>, <tt>'''100'''</tt>, <tt>'''1000'''</tt>, etc. | : geeft <tt>'''getal'''</tt> terug, afgerond (weg van nul) tot <tt>'''aantal'''</tt> plaatsen achter de komma. Als <tt>'''aantal'''</tt> wordt weggelaten of nul is, rondt de functie naar boven af naar een geheel getal. Als <tt>'''aantal'''</tt> negatief is, rondt de functie naar boven af naar de volgende <tt>'''10'''</tt>, <tt>'''100'''</tt>, <tt>'''1000'''</tt>, etc. | ||
− | : Deze functie rondt af ''weg van nul''. Zie '''[[ | + | : Deze functie rondt af ''weg van nul''. Zie '''[[NL/Documentation/How_Tos/Calc: functie AFRONDEN.NAAR.BENEDEN|AFRONDEN.NAAR.BENEDEN]]''' en '''[[NL/Documentation/How_Tos/Calc: functie AFRONDEN|AFRONDEN]]''' voor alternatieven. |
=== Voorbeeld: === | === Voorbeeld: === |
Latest revision as of 11:43, 27 January 2024
AFRONDEN.NAAR.BOVEN
Rondt een getal af, weg van nul, tot een bepaalde precisie..
Syntaxis:
AFRONDEN.NAAR.BOVEN(getal; aantal)
- geeft getal terug, afgerond (weg van nul) tot aantal plaatsen achter de komma. Als aantal wordt weggelaten of nul is, rondt de functie naar boven af naar een geheel getal. Als aantal negatief is, rondt de functie naar boven af naar de volgende 10, 100, 1000, etc.
- Deze functie rondt af weg van nul. Zie AFRONDEN.NAAR.BENEDEN en AFRONDEN voor alternatieven.
Voorbeeld:
AFRONDEN.NAAR.BOVEN(1,1111; 2)
- geeft 1,12 terug
AFRONDEN.NAAR.BOVEN(1,2345; 1)
- geeft 1,3 terug
AFRONDEN.NAAR.BOVEN(45,67; 2)
- geeft 46 terug
AFRONDEN.NAAR.BOVEN(-45,67)
- geeft -46 terug
AFRONDEN.NAAR.BOVEN(987,65; -2)
- geeft 1000 terug
Als dit voorbeeld niet lijkt te werken, kijk dan onder Extra → Opties → OpenOffice Calc → Berekenen om de weergave van de precisie te controleren. |
Zie ook