Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to round
Message
De
05/03/2007 17:16:40
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
How to round
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01200886
Message ID:
01200886
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform