Turn positive numbers into negitive numbers

i just found out prob the simplest way to turn the positive number to negitive number

{"data":{"behavior":{"v":"2","nodes":[{"expression":"A-A-A","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":360,"y":248,"group":"","id":"0aaf422a9526fb44"}],"links":[]}}}

dude just A*-1 its very simple

6 Likes

… -A is literally the simplest you can get

7 Likes

and if you want it to always use the negative variation just do -(Math.abs(A))

5 Likes

A-A-A = A - 2A = A * (1 - 2) = A * (-1) = -A

4 Likes