I have a value $17.50 as a string
how would i convert it to a double 17.50?
Printable View
I have a value $17.50 as a string
how would i convert it to a double 17.50?
Assuming that your computers default currency is $ then this would work:
VB Code:
Dim str As String = "$17.50" Dim dbl As Double = Double.Parse(str, Globalization.NumberStyles.Currency) MsgBox(Format(dbl, "0.00"))
thank you