Subject | Re: Procedure Problem, Div By 0 |
---|---|
Author | Alexander V.Nevsky |
Post date | 2003-08-07T19:32:52Z |
--- In firebird-support@yahoogroups.com, "andyh20012003"
<andyholcomb@c...> wrote:
related to any floating point types in any language.
(ELTestedVal Between -1e-06 And 1e-06)
)
then
...
Best regards, Alexander.
<andyholcomb@c...> wrote:
> > BTW, seems your TestedValue is Double Precision, and compare itIt will be worse, because precision of float is less. This is
> with
> > 0 is incorrect, I recommend to use as precision value which can be
> > treated as zero for your application, like
> >
> > if ((Abs(EHTestedVal)>PrecVal) And (Abs(ELTestedVal)>PrecVal))
>
> This happened when I copied the tables from the paradox tables,
> would I be better off changing them to float?
related to any floating point types in any language.
> > or use BETWEEN -PrecVal And PrecVal.if ((EHTestedVal Between -1e-06 And 1e-06) And
>
> Can you give me a example of this, Please
(ELTestedVal Between -1e-06 And 1e-06)
)
then
...
Best regards, Alexander.