Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Round up
Message
De
16/03/2011 07:43:17
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
 
 
À
15/03/2011 22:36:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01503812
Message ID:
01503845
Vues:
55
>Curses!! I remember doing this a few years ago. I have a number - 3.7 and when I use int I get 3 and I want 4. How please.
Try, round down just the opposite
lnnum=-3.7
if lnnum>0
lnresult=ceiling(lnnum)
else
lnresult=floor(lnnum)
endif
? lnnum
Regards N Mc Donald
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform