This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
SIGN

SIGN  


 

 

 Command SIGSIGN (arithmetic_expression)

The SIGN function returns the sign of the arithmetic_expression (e.g., 1 for a positive number, -1 for a negative number or 0).

Example  

This example will returns all the negative amounts found in the INVOICES table:

SELECT AMOUNT
FROM INVOICES
WHERE SIGN(AMOUNT) = -1;

 
PROPERTIES 

Product: 4D
Theme: Functions

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D SQL Reference ( 4D v19)