CT_SIGN

 SIGN()
 Determines the mathematical sign of a number
------------------------------------------------------------------------------
 Syntax

     SIGN(<nValue>) --> nSign

 Argument

     <nValue>  Designates the number to determine as a mathematical sign.

 Returns

     SIGN() returns 1, 0, or -1, based on whether the number passed as a
     parameter is positive, null, or negative.

 Description

     This function simplifies mathematical expressions.  If constructions or
     functions become unnecessary.  SIGN() returns three different values, in
     accordance with the specified parameter:

        1        positive numbers
        0        the number 0
       -1        negative numbers

 Examples

     .  Show a positive number:

        ? SIGN(48335)      // Result: 1

     .  Show a negative number:

        ? SIGN(-258)       // Result: -1

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.