Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Round UP Command
Message
De
08/10/2001 07:03:01
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00564838
Message ID:
00565407
Vues:
22
>The round() command in VB rounds up if the value is .5 or higher,
>but what I need is to round up if there is any fraction whatsoever,
>so 1.1 would = 2, and 45.23 = 46, etc.
>
>Is there any easy command besides breaking into the MOD functions?

ROUND( nValue + 0.5)

Will always round up.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform