Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Error in converting to numeric!

Author  Topic 

imsganesh
Starting Member

28 Posts

Posted - 2006-01-17 : 16:26:09
Hi...I'm trying to convert the varchar field to numeric. I'm using the isnumeric() function before converting it. still the query is failing when it is trying to convert this type of value '1.22252e+006' (values with exponent character), which is still recognised by the isnumeric function as a number. I donno whether this is known issue. Is there any patch/workaround for this problem?

Thanks in advance!
SG

Ganesh

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2006-01-17 : 16:34:52
Print convert(Float, '1.22252e+006' )
Print convert(Float, '1.22252e+006' ) / 1000000
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-01-17 : 17:27:13
cross post
http://sqlteam.com/forums/topic.asp?TOPIC_ID=60425
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-18 : 01:03:14
Read this fully
http://aspfaq.com/show.asp?id=2390

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

imsganesh
Starting Member

28 Posts

Posted - 2006-01-18 : 15:08:39
Thanks to you all!
Go to Top of Page
   

- Advertisement -