Click here to Skip to main content
16,015,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

iam having the value of 35.42324 i have to roundup this value to one digit

when i am using round or convert then i am getting 35.4 but i need like 35.5


please guide me how can i use roundup in sql server 2008 R2
Posted

1 solution

You may use CEILING(value*10)/10.
 
Share this answer
 
Comments
Wendelius 15-Sep-14 9:01am    
Exactly. You didn't provide this link CEILING[^]

so have only a CEILING(4.4)
:)
CPallini 15-Sep-14 9:24am    
Thank you :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900