Sign()

 <  Day Day Up  >  

Sign()

Category: Number

Syntax: Sign ( number )

Parameters: number ”any expression that resolves to a numeric value.

Description: Returns a value that represents the sign of number :

-1 when number is negative

when number is zero

1 when number is positive

Examples:

 

 Sign (0) 

Returns .

 

 Sign (100) 

Returns 1 .

 

 Sign( -100) 

Returns -1 for the formula If (Sign (BalanceDue) = -1 ; "Please pay now!" ; "Thanks for your payment!") .

Comments:

For any x other than 0, multiplying x by Sign(x) yields the Abs(x) .

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net