Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scientific format (@^) problems
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Scientific format (@^) problems
Miscellaneous
Thread ID:
00171261
Message ID:
00171261
Views:
54
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
Reply
Map
View

Click here to load this message in the networking platform