Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quiz on Programming
Message
De
01/04/1998 08:40:34
 
 
À
31/03/1998 22:26:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088587
Message ID:
00088641
Vues:
29
>If you can't use Int(), Round(), Floor(), Ceiling() or
>any similar function to cut off integer.
>
>cAn you write a function equiv. to Round()?
>Of cos, You can use / and % (mod) ^_^;

Off the top of my head

lcdeci = SET ('Decimals')
x='3423432.3523'
SET DECIMAL TO 0 && if not, you get trailing 0's on ?y to screen
y=VAL(STR(x))
SET DECIMALS TO lcdeci && Set Deci back to default

*****
This is how I would do it if I couldn't use the built in functions.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform