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 2005 Forums
 Transact-SQL (2005)
 Decimal number formating

Author  Topic 

abhit_kumar
Posting Yak Master

147 Posts

Posted - 2014-06-25 : 08:38:28
Hi All experts,

I want to format decimal number as below.
1.00=1.00
1.20=1.00
1.49=1.00
1.50=1.50
1.65 = 1.50
1.95 = 1.50
2.00=2.00
2.10=2.00
2.40=2.00
2.50=2.50
2.78=2.50


Please guide me.

Thanks,
AKM

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2014-06-25 : 08:45:31
CAST(YourColumn*2 as INT)/2.0
Go to Top of Page
   

- Advertisement -