Wrong result from IsNumeric() in VB.NET -


i have function in vb.net loops through values , attempts convert decimal if isnumeric true,

dim value string  if isnumeric(value) = true     rate = ctype(value, decimal)  <--- bombing here end if 

i've found when function receives value 603e43 isnumeric evaluates true reason , bombs on conversion. why isnumeric true in case?

see http://support.microsoft.com/kb/329488

isnumeric returns true if can converted double true 603e43 value larger decimal can hold

you use decimal.tryparse funcion working alternative. see http://msdn.microsoft.com/en-us/library/9zbda557.aspx


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

java - Why is BlockingQueue.take() not releasing the thread? -