Re: floating point precision
- From: Rush Strong <rpstrong@xxxxxxxxx>
- Date: Fri, 07 Dec 2007 04:15:46 GMT
Lew wrote:
On the more general subject of floating point precision ... see previous post ... I guess that storing division results in an array would be as accurate as vfp can get ... I mean as opposed as storing them in a cursor. So I'm thinking of a routine that creates a cursor of lookup keys and an array of long division results. The routine would seek the key and return arrayelement[recno()]. Has anyone tried something like this or... do I just need more sleep?I think you probably need more sleep. Will an array give you greater precision than a 'double' field type? I don't think so.
From the help file:
"When the Double data type is used in a table, the number of decimals specified is for presentation purposes only. Visual FoxPro stores the real value."
- Rush
.
- Follow-Ups:
- Re: floating point precision
- From: Lew
- Re: floating point precision
- References:
- floating point precision
- From: Lew
- floating point precision
- Prev by Date: Re: Fastest way to convert 1000's of YYYYMMDD char dates to real dates
- Next by Date: Re: Fastest way to convert 1000's of YYYYMMDD char dates to real dates
- Previous by thread: floating point precision
- Next by thread: Re: floating point precision
- Index(es):
Relevant Pages
|