Re: floating point precision
- From: "Lew" <lew@xxxxxxxxxxx>
- Date: Fri, 7 Dec 2007 06:28:26 -0500
.... well this is from a select <calculation> into result cursor, so I guess
I'll have to use cast(<calculation> as B(?)) to ensure that the cursor uses
the data type I want. The docs aren't entirely clear about how B(decimals)
will affect accuracy.
"Rush Strong" <rpstrong@xxxxxxxxx> wrote in message
news:SN36j.29636$AX6.19697@xxxxxxxxxxx
Lew wrote:
On the more general subject of floating point precision ... see previousI think you probably need more sleep. Will an array give you greater
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?
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: swdev2
- Re: floating point precision
- References:
- floating point precision
- From: Lew
- Re: floating point precision
- From: Rush Strong
- floating point precision
- Prev by Date: Re: cast and precision
- Next by Date: Re: Fastest way to convert 1000's of YYYYMMDD char dates to real dates
- Previous by thread: Re: floating point precision
- Next by thread: Re: floating point precision
- Index(es):
Relevant Pages
|