Difference between revisions of "Manuals/calci/NEG"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div style="font-size:30px">'''NEG(Value)'''</div><br/> *<math>Value</math> is any real number. ==Description== *This function gives the negative of a given number. *Suppose ...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="font-size:30px">'''NEG(Value)'''</div><br/>
+
<div style="font-size:30px">'''NEG(x)'''</div><br/>
*<math>Value</math> is any real number.
+
*<math>x</math> is any real number.
  
 
==Description==
 
==Description==
 
*This function gives the negative of a given number.
 
*This function gives the negative of a given number.
*Suppose the <math>Value</math> is a positive number ,then this function returns a negative number.
+
*Suppose the <math>x</math> is a positive number ,then this function returns a negative number.
*If <math>Value</math> is a negative number ,then this function returns a positive number.   
+
*If <math>x</math> is a negative number ,then this function returns a positive number.   
*Also  <math>n</math> is zero, this function shows 0.
+
*Also  <math>x</math> is zero, this function returns 0.
*This function will shows the result as error when the <math>n</math> value is non-numeric.
+
*For a non-numeric value of <math>x</math>, an error message is displayed.
 +
 
 +
==Examples==
 +
# =NEG(56) = -56
 +
# =NEG(-20) = 20
 +
# =NEG(0) = 0
 +
# =NEG(0.340) = -0.34
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|v=mRF7UCeZXa8|280|center|SIGN}}
 +
 
 +
==See Also==
 +
*[[Manuals/calci/NEGATE| NEGATE]]
 +
*[[Manuals/calci/ABS| ABS]]
 +
 
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Sign_%28mathematics%29 Sign]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 16:17, 20 November 2018

NEG(x)


  • is any real number.

Description

  • This function gives the negative of a given number.
  • Suppose the is a positive number ,then this function returns a negative number.
  • If is a negative number ,then this function returns a positive number.
  • Also is zero, this function returns 0.
  • For a non-numeric value of , an error message is displayed.

Examples

  1. =NEG(56) = -56
  2. =NEG(-20) = 20
  3. =NEG(0) = 0
  4. =NEG(0.340) = -0.34

Related Videos

SIGN

See Also

References