For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > NaN









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author NaN
Paulina

2007-06-29, 10:12 pm

My program cannot read the zeros from the spread sheet, it takes it
as NaN, even if it is 0 divided by the number which is suppose to be
0 it display it as NaN. How can I modify my program to work?
Roger Stafford

2007-06-29, 10:12 pm

In article <ef5c228.-1@webcrossing.raydaftYaTP>, Paulina
<kandali@webmail.co.za> wrote:

> My program cannot read the zeros from the spread sheet, it takes it
> as NaN, even if it is 0 divided by the number which is suppose to be
> 0 it display it as NaN. How can I modify my program to work?

---------------
If you attempt to divide by zero, you will get a NaN if the numerator is
also zero since such a quotient is undefined. If the numerator is
nonzero, you will get an infinite result (inf or -inf.) If you don't want
such results, you should not be dividing by zero.

Roger Stafford
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com