Page 1 of 1

Numeric variable

PostPosted: Mon Dec 27, 2010 2:10 pm
by MarcoBoschi
a strange question: what is the highest value that I can associate to a numeric value?

marco

Re: Numeric variable

PostPosted: Mon Dec 27, 2010 3:30 pm
by Enrico Maria Giordano
If I remember correctly, you have 15 significant digits available. You'd better ask to comp.lang.xharbour, though.

EMG

Re: Numeric variable

PostPosted: Mon Dec 27, 2010 10:11 pm
by Enrico Maria Giordano
The following sample demonstrates that the precision is 15 significant digits:

Code: Select all  Expand view
FUNCTION MAIN()

    LOCAL n

    n = 0.9999999999999999

    ? n

    n = 0.999999999999999

    ? n

    INKEY( 0 )

    RETURN NIL


The result is:

1.0000000000000000
0.999999999999999

EMG

Re: Numeric variable

PostPosted: Tue Dec 28, 2010 1:46 pm
by MarcoBoschi
Thank you Emg

marco