T Tom Shelton Feb 19, 2004 #2 Hi, How do I change a positiv integer to a negative value ? tnx Totto Click to expand... Dim value As Integer = Math.Abs(MyInt) * -1 value will always be negative...
Hi, How do I change a positiv integer to a negative value ? tnx Totto Click to expand... Dim value As Integer = Math.Abs(MyInt) * -1 value will always be negative...
J Jay B. Harlow [MVP - Outlook] Feb 19, 2004 #3 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
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