SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Decimal number formating
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

abhit_kumar
Posting Yak Master

146 Posts

Posted - 06/25/2014 :  08:38:28  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

3557 Posts

Posted - 06/25/2014 :  08:45:31  Show Profile  Reply with Quote
CAST(YourColumn*2 as INT)/2.0
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000