Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Round() function
Message
De
06/05/2003 03:57:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/05/2003 00:46:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00785199
Message ID:
00785224
Vues:
21
>Hi,
>
>i can't round up a value with this function
>example: 1.61 became 1.7 or 1.661 became 1.67
>
>what function i use for this case ?
>
>thx,
>Abit

You're not rounding, you're doing an absolute round-up. Try this :
* round(lnNum,lnRound)
Ceiling(lnNum * 10^lnRound)*10^-lnRound
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform