Usted está aquí: Help Topics > Customization > Calculation > POS Function

POS Function

The POS function returns a value if the value is positive, otherwise it returns zero.

Syntax

POS(value)

Example

Assume the following:

BANK1 = c1 = 500

BANK2 = c2 = -500

BANK3 = c3 = 1000

Then:

POS(c1) = 500 and POS(-c1) = 0

POS(c2) = 0 and POS(-c2) = 500

POS(c3) = 1000 and POS(-c3) = 0

Therefore:

Bank Balance = POS(c1)+POS(c2)+POS(c3) = 1500

Bank Overdraft = POS(-c1)+POS(-c2)+POS(-c3) = 500

Related Topics