Difference between revisions of "Manuals/calci/NEG"
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 ...") |
|||
Line 1: | Line 1: | ||
− | <div style="font-size:30px">'''NEG( | + | <div style="font-size:30px">'''NEG(x)'''</div><br/> |
− | *<math> | + | *<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> | + | *Suppose the <math>x</math> is a positive number ,then this function returns a negative number. |
− | *If <math> | + | *If <math>x</math> is a negative number ,then this function returns a positive number. |
− | *Also <math> | + | *Also <math>x</math> is zero, this function returns 0. |
− | * | + | *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|CDYIHcvpEIU|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 ]] |
Revision as of 05:45, 7 April 2017
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
- =NEG(56) = -56
- =NEG(-20) = 20
- =NEG(0) = 0
- =NEG(0.340) = -0.34
Related Videos
See Also
References