Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding
Message
 
À
07/04/2003 13:53:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00774783
Message ID:
00774807
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
I wanted to know this to.
After I set the decimal to 5 it works.
set decimal to 5
Tracy

>didnt work:
>>nVal = 0.00014
>>? ROUND( nVal * 2, 4 ) / 2
>
>this returns 0.0002
>
>I need it to return 0.00015 if nVal=0.00014
>if nval then return
> 0.00011 \ 0.00010
> 0.00012 \ 0.00010
> 0.00013 \ 0.00015
> 0.00014 \ 0.00015
> 0.00015 \ 0.00015
> 0.00016 \ 0.00015
> 0.00017 \ 0.00015
> 0.00018 \ 0.00020
> 0.00019 \ 0.00020
> 0.00020 \ 0.00020
Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform