>>>Hello everybody.
>>>
>>>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.
>>>
>>>how do you write this in Vfp?
>>>
>>>thank for all your help!
>>
>>Gunnar,
>>
>>The expr in Java is the same as the expr in foxpro
>>
>>123e15 = 123 * 10 ^ 15
>>
>
>
>hello Gregory
>
>thank you thats it. i didn't know that the "e" stands for "10^". i thought it was only "^". now, is the "123e15" a correct , propper syntax? or is just something that 'happens' to be working in vfp6?
>
>Thanks again for your help!
hi Gunnar,
123e15 means 123 and shift the decimal point 15 places to the right
123-e15 means 123 and shift the decimal point 15 places to the left
123e15 is scientific notation and can be used in
most languages It also allows to drop a lot of zeroes when writing. You'll find this notation in the definition of float and double data types in the help.
see more
http://mathforum.org/library/drmath/view/57140.htmlhttp://mathforum.org/library/drmath/view/61563.html
Gregory