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
 Transact-SQL (2000)
 sql

Author  Topic 

fmardani
Constraint Violating Yak Guru

433 Posts

Posted - 2004-09-30 : 05:21:22
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

dev45
Yak Posting Veteran

54 Posts

Posted - 2004-09-30 : 05:42:18
remove the single delimiters
select convert(numeric(18,2),5.0000000000000003E-2)
Go to Top of Page
   

- Advertisement -