Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding up in SQL Server
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00775316
Message ID:
00775331
Views:
10
>Hi,
>
>I need to do some rounding to 2 decimal places - but I need to round up and I'm not sure how to get the results I'm looking for.
>
>For example:
>
>
>Select ROUND(2128.0748, 2)
>
>returns 2128.07
>
>
>
>I want it to return 2128.08 - any ideas on how to go about achieving this result?


You can also use:

Select CEILING(2128.0748*100)/100

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform