S
Stuart Nathan
I know how to convert a number into a string containing the local currency,
but does anyone know how to do the opposite?
but does anyone know how to do the opposite?
Stuart Nathan said:Actually I wanted to convert £123,456.10 to 123456.1
I solved this by
r="£123,456.10"
r = r.Replace(CultureInfo.CurrentCulture.NumberFormat.CurrencySymbol, "")
' removes £
r = r.Replace(",", "") ' removes comma
Return Val(r)