Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scientific format (@^) problems
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Scientific format (@^) problems
Divers
Thread ID:
00171261
Message ID:
00171261
Vues:
55
Is there any way to control the number of decimalplaces in the result when you use the scientific format (@^) option in reports etc. The number of decimals varies in my results.

Ex.

Details.volt = 45.000
Header.startvolt = -0.077
Header.pkropplgd = 50.00
Details.realtemp = 100.350
Header.rumtemp = 20.00

(((Details.volt-Header.startvolt) * 0.89484) / Header.pkropplgd) + ((5.4545*10^-5*Details.realtemp-1.06*10^-3)/100) / (Details.realtemp-Header.rumtemp) = 0.80673460290

0.80673460290 formated scientific in my report shows 8.06734602900001E-1

I would like it to be 8.067E-1

I also use the same calculation in the init of the report and place the result in an
array for later use. When i display the result of the arrayelement in the report i get
8.067346E-1

I have SET DECIMALS TO 3 in app.
/Torgny
Répondre
Fil
Voir

Click here to load this message in the networking platform