Difference between revisions of "Manuals/calci/ODD"
Jump to navigation
Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...") |
|||
| Line 1: | Line 1: | ||
| − | + | = ODD(number)= | |
| − | + | *where <math>number</math> is the input number. | |
| + | ODD() rounds the number to the nearest odd integer away from zero. | ||
| − | + | == Description == | |
| − | + | ODD(number) | |
| − | |||
| − | + | ODD(76) ''returns 77'' | |
| − | + | *For a non-numeric <math>number</math>, Calci returns an #ERROR message. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | + | *The <math>number</math> is rounded up away from zero to its nearest odd integer, irrespective of its sign. |
| − | + | == 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" |ODD(98) | |
| − | + | | class="sshl_f" |99 | |
| − | | class="sshl_f" | | + | |
| − | | class="sshl_f" | | ||
| − | |||
|- class="even" | |- class="even" | ||
| − | + | | class="sshl_f" |ODD(-23) | |
| − | | class="sshl_f" | | + | | class="sshl_f" |-23 |
| − | | class="sshl_f | + | |
| − | |||
| − | |||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |ODD(34.98989898) | |
| − | | class="sshl_f" | | + | | class="sshl_f" |35 |
| − | | class="sshl_f" | | + | |
| − | |||
| − | |||
|- class="even" | |- class="even" | ||
| − | + | | class="sshl_f" |ODD(-5.2) | |
| − | | class="sshl_f" | | + | | class="sshl_f" |-7 |
| − | | class="sshl_f" | | + | |
| − | |||
| − | |||
|- class="odd" | |- class="odd" | ||
| − | + | | class="sshl_f" |ODD(666) | |
| − | + | | class="sshl_f" |667 | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | class="sshl_f" | | ||
| − | | class="sshl_f" | | ||
|} | |} | ||
| − | + | == See Also == | |
| − | + | ||
| − | + | *[[Manuals/calci/ISODD | ISODD]] | |
| + | |||
| + | *[[Manuals/calci/EVEN | EVEN]] | ||
| + | |||
| + | *[[Manuals/calci/TRUNC | TRUNC]] | ||
| + | |||
| + | *[[Manuals/calci/INT | INT]] | ||
| + | |||
| + | *[[Manuals/calci/CEILING | CEILING]] | ||
| + | |||
| + | *[[Manuals/calci/FLOOR | FLOOR]] | ||
| + | |||
| + | ==References== | ||
| + | |||
| + | *[http://en.wikipedia.org/wiki/Even_and_odd_functions ODD Function] | ||
Revision as of 19:21, 13 December 2013
ODD(number)
- where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} is the input number.
ODD() rounds the number to the nearest odd integer away from zero.
Description
ODD(number)
ODD(76) returns 77
- For a non-numeric Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} , Calci returns an #ERROR message.
- The Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} is rounded up away from zero to its nearest odd integer, irrespective of its sign.