Difference between revisions of "Manuals/calci/ROUND"
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=...") |
|||
Line 1: | Line 1: | ||
− | + | =ROUND(number, num_of_digits)= | |
− | + | *Where 'number' is the number to round and | |
+ | *'num_of_digits' is the number of digits before or after decimal point. | ||
− | + | ROUND() rounds the number to specified number of digits. | |
− | |||
− | |||
− | + | == Description == | |
− | + | ROUND(number, num_of_digits) | |
− | |||
− | |||
− | + | For Example, | |
− | + | ROUND(3.6712,2) ''returns 3.67'' | |
− | |||
− | |||
− | |||
− | |||
− | + | *When Nd is greater than zero,the number is rounded to the specified number of decimal places. | |
+ | *When Nd is 0, the number is rounded to the nearest integer. | ||
+ | *When Nd is less than 0, the number is rounded to the left of the decimal point. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == 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" | 3.6712 | | class="sshl_f" | 3.6712 | ||
| class="sshl_f" | 2 | | class="sshl_f" | 2 | ||
− | |||
− | |||
− | |||
| | | | ||
|- class="even" | |- class="even" | ||
− | |||
| class="sshl_f" | 3.67 | | class="sshl_f" | 3.67 | ||
| class="sshl_f" | | | class="sshl_f" | | ||
− | |||
− | |||
− | |||
| | | | ||
|- class="odd" | |- class="odd" | ||
− | |||
− | |||
| class="sshl_f" | | | class="sshl_f" | | ||
| class="sshl_f" | | | class="sshl_f" | | ||
− | |||
− | |||
| | | | ||
|- class="even" | |- class="even" | ||
− | |||
| class="sshl_f" | | | class="sshl_f" | | ||
− | | | + | | class="sshl_f" | |
− | |||
− | |||
− | | | ||
| | | | ||
|- class="odd" | |- class="odd" | ||
− | | | + | | class="sshl_f" | |
| class="sshl_f" | | | class="sshl_f" | | ||
| | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 12:24, 27 November 2013
ROUND(number, num_of_digits)
- Where 'number' is the number to round and
- 'num_of_digits' is the number of digits before or after decimal point.
ROUND() rounds the number to specified number of digits.
Description
ROUND(number, num_of_digits)
For Example,
ROUND(3.6712,2) returns 3.67
- When Nd is greater than zero,the number is rounded to the specified number of decimal places.
- When Nd is 0, the number is rounded to the nearest integer.
- When Nd is less than 0, the number is rounded to the left of the decimal point.
Examples
Function | Output | |
3.6712 | 2 | |
3.67 | ||