DecimalWithImplicitMath()
Public Shared Sub DoubleMath()
Dim myDuration As Integer = 60
Dim myRatio As Double = 1/60
Dim myRate As Decimal = 0.0017
Dim myCharge As Decimal = (myDuration * myRate * myRatio)
Console.WriteLine($"{NameOf(DoubleMath)}: {myCharge}")
Public Shared Sub DecimalWithImplicitMath()
Dim myDuration As Integer = 60
Dim myRatio As Decimal = 1/60
Dim myRate As Decimal = 0.0017
Dim myCharge As Decimal = (myDuration * myRate * myRatio)
Console.WriteLine($"{NameOf(DecimalWithImplicitMath)}: {myCharge}")
Public Shared Sub DecimalMath()
Dim myDuration As Integer = 60
Dim myRatio As Decimal = 1/60D
Dim myRate As Decimal = 0.0017
Dim myCharge As Decimal = (myDuration * myRate * myRatio)
Console.WriteLine($"{NameOf(DecimalMath)}: {myCharge}")