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)
 sql

Author  Topic 

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2004-09-30 : 05:21:01
How can I convert this varchar value to a numeric please?
select convert(numeric(18,2),'5.0000000000000003E-2')
currently this gives an error: Error converting data type varchar to numeric.

Thanks

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2004-09-30 : 06:53:42
It's a float, so convert it to a float...
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-09-30 : 07:26:18
double posting really won't help getting an answer faster...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=40682

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -