Function Sign()

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

Share on Google Plus

About Nifty Guru

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Sunday, June 21, 2009

Function Sign()

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

Function Sign()SocialTwist Tell-a-Friend

0 comments:

Post a Comment