Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric value
Message
De
10/05/2000 01:42:20
 
 
À
09/05/2000 16:38:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00367820
Message ID:
00367970
Vues:
11
>You can force truncation using the FLOOR() function.

Careful, remember, Floor() rounds down to the next integer, and Cieling() of course rounds up, so Floor(nNum * 10) / 10 on -2.55 gives -2.6, thats not good. You'd have to use Floor(nNum * -10) / -10 or better yet, just Int(nNum * 10) / 10
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform