User-952121411 posted
There are a few ways to do this. Take a look at the code below:
'Using String Format of "F2"
Dim Dec As Decimal = 2.45653
Dim Num As String = Dec.ToString("F2")
'Using 'FormatNumber':
Dim Dec As Decimal = 2.45653
Dim Num As String = FormatNumber(Dec, 2, TriState.UseDefault, GroupDigits:=TriState.False)
'Using Math.Round; notice remains type of Decimal
Dim Dec As Decimal = Math.Round(2.45653, 2)
'And of coarse, for any of these that change to a string, you can parse back into a Decimal like below
Dec = Decimal.Parse(Num)