Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of moving from Double to Integer
Message
 
 
À
08/02/2012 15:12:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01534895
Message ID:
01534898
Vues:
54
This message has been marked as a message which has helped to the initial question of the thread.
>If I have a value in a variable declared Double and wish to move that into a variable declared Integer, would there be any specific consideration to take care of? Presently, I simply use A=B. But, I was wondering if there would be a proper way to do that.

I suggest to use TryParse. See

http://www.dreamincode.net/forums/blog/1693/entry-3714-got-the-net-casting-blues-tryparse-is-here-to-save-the-day/
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform