Do calculation between Integer and Decimal : Decimal « Data Type « VB.Net Tutorial






public class Test
   public Shared Sub Main

        Dim Meters As Integer
        Dim Inches As Decimal

        Meters = 23
        Inches = Meters * 39.37
        Console.WriteLine("Meters: " & Meters)

        Meters = Meters + 1
        Console.WriteLine("Meters: " & Meters)

        Meters += 1
        Console.WriteLine("Meters: " & Meters)

   End Sub
End class
Meters: 23
Meters: 24
Meters: 25








2.12.Decimal
2.12.1.Decimal.Compare
2.12.2.Decimal.Divide
2.12.3.Decimal.Floor
2.12.4.Decimal.GetBits
2.12.5.Decmimal calculation
2.12.6.Divide Decimal by double
2.12.7.MinValue and MaxValue of Decimal
2.12.8.Do calculation between Integer and Decimal
2.12.9.Converts Decimal numbers to UInt32 values using the explicit Decimal to UInt32 conversion.
2.12.10.Converts Decimal numbers to SByte values using the explicit Decimal to SByte conversion.