Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JavaScript 2 VFp
Message
 
 
To
05/03/2005 13:15:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993028
Message ID:
00993104
Views:
16
Gunnar,

>the following is a JavaScript line
>1 * (3*0.868976241903*1.852e+15)
>
>which returns:
>4,828,032,000,013,069
>i always thought that "e+(-)" is the exponent function which in Vfp6 is writen as follows
>1 * (3*0.868976241903*1.852^15)
>
>but this returns:
>26961.49021013183
>the results don't match. i can write it the same way in vfp as in JavaScript (e+) it returns the correct result. but i am not sure if this is the correct way of doing this.

because you told VFP to take 1.852 and raise it to the 15th power which is a different number than 1.852e15 which is 1.852 x 10^15

>
>how do you write this in Vfp?

1 * (3*0.868976241903*1.852e+15)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform