Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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 :