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

carlos4457
Level 1
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
Magus069
Correct answer by
Level 10
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
Magus069
Correct answer by
Level 10
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