Manuals/calci/ODD

Revision as of 19:21, 13 December 2013 by Swapna (talk | contribs)

ODD(number)

  • where   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.

Examples

Function Output
ODD(98) 99
ODD(-23) -23
ODD(34.98989898) 35
ODD(-5.2) -7
ODD(666) 667

See Also

References