J
Jason
In VB.NET, when I use System.Convert.ToDouble(string Val) to convert a string
variable to double variable, I got something interesting:
Dim stringVal As String = "101.01"
Dim doubleVal As Double
doubleVal = System.Convert.ToDouble(stringVal)
Msgbox (doubleVal) will return 101.01
but......
Dim stringVal As String = "101.00"
Dim doubleVal As Double
doubleVal = System.Convert.ToDouble(stringVal)
Msgbox (doubleVal) will return 101
where is the ".00" ?
Should I get 101.00 instead of 101?
Did I missed something here?
TIA
variable to double variable, I got something interesting:
Dim stringVal As String = "101.01"
Dim doubleVal As Double
doubleVal = System.Convert.ToDouble(stringVal)
Msgbox (doubleVal) will return 101.01
but......
Dim stringVal As String = "101.00"
Dim doubleVal As Double
doubleVal = System.Convert.ToDouble(stringVal)
Msgbox (doubleVal) will return 101
where is the ".00" ?
Should I get 101.00 instead of 101?
Did I missed something here?
TIA