On Jan 30, 2005, at 7:33 PM, Andrew Keller wrote:
I have a two dimensional array of doubles, and I'm trying to do some
math in it and am having some trouble. Through some debugging, I
found that some of the cells have the value NAN(000) . What does
this mean?
It means "Not A Number". It's the result of a variety of invalid
math operations, such as 0/0.
It appears that 0 / 1 returns NAN(000) . Is this supposed to happen?
It should return 0.
What platform? Here on 10.3.7, this code produces "0":
msgBox str(0.0/1.0)
HTH,
Jon
--
Jonathan Johnson
REAL Software, Inc.
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|