0

Make an int value to negative

Thomas Brunel 1 year ago updated by Ex-Crow 1 year ago 3

Hello how to change an int to a negative one ? 8 become -8

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

For the moment i take my int x2 then int - newint

solution : so to transform an int into a negative one : use formula node with -a inside.

+2

Or just multiply with -1.