Change the sign of an integer

  • Thread starter Thread starter Totto
  • Start date Start date
Totto,
In addition to multiple by -1 as Tom showed, you can subtract from 0.

Dim value As Integer = 0 - Math.Abs(MyInt)

I'm sure there are one or two other methods you could use.

Hope this helps
Jay
 
Back
Top