How to use Decimal.Negate method to get the result of a decimal multiplied by -1 in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Console.WriteLine(Decimal.Negate(8752.781D))
		
        Console.WriteLine(Decimal.Negate(-4.93D))
    End Sub
End Class





' run:
'
' -8752.781
' 4.93
'

 



answered Aug 4, 2022 by avibootz
...