>1. Question.
>
>How many literal digits are meant in VFP ?
>
>SET DECIMALS TO 18
>SET FIXED OFF
>? 3.119999999999971000000000000000000000E140
>? 3.1199999999999710000000000000000000000E140
>
>
>1 Problem: why VFP print dpfpn literals with 32 decimals ?
>
>2 Bug : 37° literal zero it has a weight not zero
>
>then
>
>? 'all zero are zero ?' , 3.119999999999971000000000000000000000E140 >= 3.1199999999999710000000000000000000000E140
>
>
>rule is literal1>=literal2 -> value1>=value2 is not respected.
>
>How many literal digits are meant in VFP ? Sure at least 37 decimals.
>
>This is a little problem because it appears with much decimals.
>
>Fabio
Fabio,
Help (under Visual Foxpro system capacities) says :
Digits of precision in numeric computations 16 which is a half too many
I think the mantissa of a double is 52 bits. Hence, log10(2^52) yields 15.65 digits of precision.
I would go for 15 to be on the safe side.
Gregory