Difference between revisions of "Manuals/calci/ROUNDDOWN"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <div | + | <div style="font-size:30px">'''ROUNDDOWN(number,num_digits)'''</div><br/> |
− | + | *Where 'number' is the number to round and | |
+ | *'num_of_digits' is the number of digits to which the number is to be rounded. | ||
+ | **ROUNDDOWN(), rounds a number down, toward zero. | ||
− | + | == Description == | |
− | |||
− | |||
− | + | ROUNDDOWN(number, num_of_digits) | |
− | + | This function is used to round a number down towards zero, to the number of decimal digits specified in the argument. | |
− | |||
− | |||
− | + | For Example, | |
− | + | ROUNDDOWN(67.8,0) ''returns 67'' as a result. | |
− | |||
− | |||
− | |||
− | |||
− | + | ROUNDDOWN(6.83112,3) ''returns 6.831'' as a result. | |
− | + | *If 'num_of_digits' is omitted, Calci displays #NaN error message. | |
− | + | *The number is rounded down to the specified number of decimal places, if num_of_digits > 0. | |
− | + | *The number is rounded down to the nearest integer, if num_of_digits = 0. | |
− | + | *The number is rounded down to the left of the decimal point, if num_of_digits < 0. | |
− | + | *If any argument is non-numeric, Calci displays #NaN error message. | |
− | + | ROUNDDOWN() can also be used for multiple number array as - | |
− | + | ROUNDDOWN(2.55..7.55,1) that rounds the numbers 2.55 to 7.55 to one decimal place. | |
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Number !! Num_of_digits !! ROUNDDOWN | ||
+ | |- | ||
+ | | 2.55 || 1 || 2.5 | ||
+ | |- | ||
+ | | 3.55 || 1 || 3.5 | ||
+ | |- | ||
+ | | 4.55 || 1 || 4.5 | ||
+ | |- | ||
+ | | 5.55 || 1 || 5.5 | ||
+ | |- | ||
+ | | 6.55 || 1 || 6.5 | ||
+ | |- | ||
+ | | 7.55 || 1 || 7.5 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | *ROUND() can be used to round a number to specified number of digits. | ||
+ | *ROUNDUP() can be used to round a number away from zero. | ||
+ | *MROUND() can be used to round a number to desired multiple. | ||
+ | |||
+ | == Examples == | ||
− | |||
− | |||
<div id="6SpaceContent" class="zcontent" align="left"> | <div id="6SpaceContent" class="zcontent" align="left"> | ||
{| id="TABLE3" class="SpreadSheet blue" | {| id="TABLE3" class="SpreadSheet blue" | ||
|- class="even" | |- class="even" | ||
− | + | | class=" " | '''Function''' | |
− | + | | class=" " | '''Output''' | |
− | + | ||
− | | class=" " | | ||
− | | class=" " | | ||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | + | | class="sshl_f" | ROUNDDOWN(7.6712,2) | |
− | | class="sshl_f" | | + | | class="sshl_f" | 7.67 |
− | | class="sshl_f" | | + | |
− | |||
− | |||
− | |||
− | |||
|- class="even" | |- class="even" | ||
− | + | | class="sshl_f" | ROUNDDOWN(388.345,0) | |
− | | class="sshl_f | + | | class="sshl_f" | 388 |
− | | class="sshl_f" | | + | |
− | |||
− | |||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | + | | class="sshl_f" | ROUNDDOWN(199.37,-1) | |
− | | class="sshl_f" | | + | | class="sshl_f" | 190 |
− | + | ||
− | | class="sshl_f" | | ||
− | |||
− | |||
− | |||
|- class="even" | |- class="even" | ||
− | + | | class="sshl_f" | ROUNDDOWN(-9.95,1) | |
− | + | | class="sshl_f" | -9.9 | |
− | + | ||
− | | class=" | ||
− | |||
− | |||
− | |||
− | |||
|- class="odd" | |- class="odd" | ||
− | + | | class="sshl_f" | ROUNDDOWN(-9.95,-1) | |
− | + | | class="sshl_f" | 0 | |
− | |||
− | |||
− | |||
− | |||
− | | class=" | ||
− | |||
|} | |} | ||
− | + | ==Related Videos== | |
− | + | ||
− | + | {{#ev:youtube|_MIn3zFkEcc|280|center|ROUNDING DECIMALS}} | |
+ | |||
+ | == See Also == | ||
+ | |||
+ | *[[Manuals/calci/ROUNDUP | ROUNDUP]] | ||
+ | |||
+ | *[[Manuals/calci/ROUND | ROUND]] | ||
+ | |||
+ | *[[Manuals/calci/MROUND | MROUND]] | ||
+ | |||
+ | *[[Manuals/calci/INT | INT]] | ||
− | + | *[[Manuals/calci/TRUNC | TRUNC]] | |
− | + | *[[Manuals/calci/CEILING | CEILING]] | |
− | + | *[[Manuals/calci/FLOOR | FLOOR]] | |
− | + | ==References== | |
− | |||
− | |||
− | + | *[http://en.wikipedia.org/wiki/Rounding Round Function] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[[Z_API_Functions | List of Main Z Functions]] | |
− | + | *[[ Z3 | Z3 home ]] | |
− | |||
− |
Latest revision as of 15:34, 21 August 2018
ROUNDDOWN(number,num_digits)
- Where 'number' is the number to round and
- 'num_of_digits' is the number of digits to which the number is to be rounded.
- ROUNDDOWN(), rounds a number down, toward zero.
Description
ROUNDDOWN(number, num_of_digits)
This function is used to round a number down towards zero, to the number of decimal digits specified in the argument.
For Example,
ROUNDDOWN(67.8,0) returns 67 as a result.
ROUNDDOWN(6.83112,3) returns 6.831 as a result.
- If 'num_of_digits' is omitted, Calci displays #NaN error message.
- The number is rounded down to the specified number of decimal places, if num_of_digits > 0.
- The number is rounded down to the nearest integer, if num_of_digits = 0.
- The number is rounded down to the left of the decimal point, if num_of_digits < 0.
- If any argument is non-numeric, Calci displays #NaN error message.
ROUNDDOWN() can also be used for multiple number array as -
ROUNDDOWN(2.55..7.55,1) that rounds the numbers 2.55 to 7.55 to one decimal place.
Number | Num_of_digits | ROUNDDOWN |
---|---|---|
2.55 | 1 | 2.5 |
3.55 | 1 | 3.5 |
4.55 | 1 | 4.5 |
5.55 | 1 | 5.5 |
6.55 | 1 | 6.5 |
7.55 | 1 | 7.5 |
- ROUND() can be used to round a number to specified number of digits.
- ROUNDUP() can be used to round a number away from zero.
- MROUND() can be used to round a number to desired multiple.
Examples
Function | Output |
ROUNDDOWN(7.6712,2) | 7.67 |
ROUNDDOWN(388.345,0) | 388 |
ROUNDDOWN(199.37,-1) | 190 |
ROUNDDOWN(-9.95,1) | -9.9 |
ROUNDDOWN(-9.95,-1) | 0 |
Related Videos
See Also
References