Jump to content

[SOLVED] Add/Subtract depending on positive/negative number?


ChadNomad

Recommended Posts

Luckily, the way positive and negative numbers works, you can do the following:

 

$a + $b

 

Let's say a is 10 and b is 9, that will yield 19....  Let's say b is -9....

 

10+-9

That would be 1 ;p.

 

Yeah I just noticed that! Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.