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)
 Decimal format?

Author  Topic 

kwikwisi
Constraint Violating Yak Guru

283 Posts

Posted - 2008-07-01 : 02:19:31
I have one field and type is float.I want to retreive with decimal places.
It's ok if value is like 12.4,but i want 23.00 if value is 23.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-01 : 02:22:12
Cast it to float and try.
Go to Top of Page

kwikwisi
Constraint Violating Yak Guru

283 Posts

Posted - 2008-07-01 : 02:28:30
Pls let me know how to do it? Data type is already float.
Thanks.

quote:
Originally posted by visakh16

Cast it to float and try.

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-07-01 : 16:48:27
Cast(col as decimal(16,2))

Madhivanan

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

- Advertisement -