Difference between revisions of "Manuals/calci/EVEN"

From ZCubes Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= EVEN(Number)=
+
<div style="font-size:30px">'''EVEN(Number)'''</div><br/>
 
 
 
*where <math>Number</math> is the input number.
 
*where <math>Number</math> is the input number.
EVEN() rounds the number to the nearest even integer away from zero.
+
**EVEN() rounds the number to the nearest even integer away from zero.
  
 
== Description ==
 
== Description ==
Line 74: Line 73:
  
 
==Related Videos==
 
==Related Videos==
 +
 
{{#ev:youtube|SFRTTUtAjg4|280|center|EVEN}}
 
{{#ev:youtube|SFRTTUtAjg4|280|center|EVEN}}
  

Latest revision as of 15:00, 11 January 2019

EVEN(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.
    • EVEN() rounds the number to the nearest even integer away from zero.

Description

EVEN(number)

EVEN(51) returns 52

  • 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 #NULL 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 even integer, irrespective of its sign.
  • EVEN() can be used with array of numbers as -

In ZOS:

  • EVEN(1..10) or
  • 1..10@EVEN

In Calci:

  • =EVEN(1..10) or
  • =1..10@EVEN
Numbers EVEN
1 2
2 2
3 4
4 4
5 6
6 6
7 8
8 8
9 10
10 10

Examples

Function Output
EVEN(57) 58
EVEN(-23) -24
EVEN(34.98989898) 36
EVEN(-3.25) -4
EVEN(222) 222

Related Videos

EVEN

See Also

References