Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to round
Message
 
 
To
05/03/2007 17:16:40
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01200886
Message ID:
01200887
Views:
19
This message has been marked as the solution to the initial question of the thread.
Try using CAST function.

See Re: Select data from numeric field in formatted manner Thread #1163837 Message #1163842

You may find this useful as well
Re: Converting money to char Thread #818579 Message #818639

>Hi
>How to round the result of a column display in sql, when doing something like this, in the enterprise manager:
>
>Select round(TotalCost,2) from Cost
>
>
>But it display something like this:
>
>TotalCost
> 367.60000000000002
> 51.210000000000001
> 740.51999999999998
>
>and I need rounded like this:
>
>TotalCost
> 367.60
> 51.21
> 740.52
>
>Thanks in advance
>Carlos Burgos
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform