| View previous topic :: View next topic |
| Author |
Message |
Don Gollahon Guest
|
Posted: Fri Jan 16, 2004 9:36 pm Post subject: NAN values? |
|
|
I have a report that runs fine on several databases. But on one when it
gets to page 23 gives me an "Invalid floating point error." During debug I
find that one of the values being used in a calculation is a -NAN. I've
scanned tables and verified tables and cannot find where this value is
coming from. Not sure what a NAN is other than "not a number".
Thanks for any help you can give.
--
Don Gollahon
[email]gollahon (AT) geneseo (DOT) net[/email]
|
|
| Back to top |
|
 |
Ignacio Vazquez Guest
|
Posted: Fri Jan 16, 2004 9:40 pm Post subject: Re: NAN values? |
|
|
Don Gollahon wrote:
| Quote: | Not sure what a NAN is
other than "not a number".
|
From http://www.cygnus-software.com/papers/x86andinfinity.html:
"NANs are important for signifying meaningless results. If you take the
logarithm of a negative number, divide zero by zero, subtract infinity
from itself, or any other operation where there is no meaningful
answer, a NAN signals this fact. Since any operation that involves a
NAN returns another NAN, you are guaranteed to be able to detect when
some part of your calculations went haywire."
--
Cheers,
Ignacio
Help improve Delphi: http://qc.borland.com/
|
|
| Back to top |
|
 |
John Herbster (TeamB) Guest
|
Posted: Fri Jan 16, 2004 10:22 pm Post subject: Re: NAN values? |
|
|
"Don Gollahon" <gollahon (AT) nospam (DOT) geneseo.net> wrote
| Quote: | I have a report that runs fine on several databases.
But on one ... [it] gives me an "Invalid floating point error."
During debug I find that one of the values being used in
a calculation is a -NAN. ... cannot find where this value
is coming from.
|
Don, How is it that you can see the -NAN but not know
where it comes from? Can you insert some IsNAN(...)
functions (from the Math unit) to try to catch it before the
calc. It might be created by a "0/0" or such as that.
Regards, JohnH
(PS: If you cannot find the IsNAN function, I can give
you one.)
|
|
| Back to top |
|
 |
Don Gollahon Guest
|
Posted: Mon Jan 19, 2004 5:12 pm Post subject: Re: NAN values? |
|
|
"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote
| Quote: |
You don't say what kind of table it is. If it is a Paradox table Rebuild
it. |
I thought this newsgroup was for Paradox tables only (or maybe DBase).
It is a Paradox table and I have used 3 different table repair utilities.
They all say the table verifies fine.
| Quote: | --
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]
|
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Mon Jan 19, 2004 8:19 pm Post subject: Re: NAN values? |
|
|
On Mon, 19 Jan 2004 11:12:13 -0600, "Don Gollahon"
<gollahon (AT) nospam (DOT) geneseo.net> wrote:
| Quote: | I thought this newsgroup was for Paradox tables only (or maybe DBase).
|
No, this group is for desktop (a.k.a. file server) databases. Paradox,
Access and dBase are the most common but questiona about any
non-client/server database belong here.
| Quote: |
It is a Paradox table and I have used 3 different table repair utilities.
They all say the table verifies fine.
|
A NAN is a data error, not an error in the table structure.
Unfortunately Paradox tables do not contain checksums or other
information that a repair program can use to repair damaged data.
Therefore, none of the Paradox table repair programs attempt to repair
data.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
John Herbster Guest
|
Posted: Wed Jun 30, 2004 4:03 pm Post subject: Re: NAN values? |
|
|
"Don Gollahon" <gollahon (AT) nospam (DOT) geneseo.net> wrote
| Quote: | It is a Paradox table and I have used 3 different
table repair utilities. They all say the table verifies fine.
|
So what was the problem?
|
|
| Back to top |
|
 |
|