Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Round() problem
Message
De
04/06/2008 11:06:34
 
 
À
04/06/2008 10:38:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01321604
Message ID:
01321620
Vues:
15
Works for me on VFP 9.0 and VFP 9.0, SP2

>Hi All
>I have a strange problem in my code with a ROUND() function.
>The following code works fine in command window, but inside one FUNCTION returns bad result.
>
>*********************
>*- The code...
>
>SET FIXED ON
>SET DECIMALS TO 3
>
>DIMENSION laTest(1,1)
>laTest(1,1)=112.575
>?ROUND(laTest(1,1),2)
>
>*- the result:
>
>112.57
>
>*********************I can't understand!!! what's wrong!!!
>Any help would be great.
>
>Thank's in advance,
>NPedro
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform