Sign()
This function is used determine the sign (negative or positive) of a given number. It returns -1 for negative number, 1 for a positive number and, 0 if the number provided is 0
Syntax:
= Sign (Number)
Number: Number for which sign is to be determined
Example:
- = Sign (-21) – result will be: -1
- = Sign (-1) – result will be: -1
- = Sign (21) – result will be: 1
- = Sign (0) – result will be: 0
0 comments:
Post a Comment