Expand my Community achievements bar.

SOLVED

Code for adding negative numbers

Avatar

Level 1

How to add negative numbers such as tax credits and discounts in an expanding table. The "Total" field only adds the purchases which are debits but does not add the credits.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

you can use the Math.abs(); which puts any number value to positive value and use the negative sign in front.. like the following :

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi there,

you can use the Math.abs(); which puts any number value to positive value and use the negative sign in front.. like the following :