Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fix rounding bug
Message
De
02/10/2007 14:14:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/10/2007 14:08:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01258001
Message ID:
01258024
Vues:
26
>Thank you.
>I have used round( ...,2) in 150 places in my code and in reports.
>
>Should I re-write all my code and change all reports to use double rounding ?

No... write some code that'll do that for you. Open each report, drive through expr field, get a lcstr=strextract(expr, "round(", ",2)") case insensitive, if it returns non-empty, check for parentheses in it (i.e. see whether you haven't cut it in the wrong place), and then replace with strtran(expr, lcStr, "round("+lcstr+",4)").

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform