We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
help with NaN (Read 970 times)
help with NaN
May 8th, 2009, 3:02pm
 
Help!

I just added more entries to a TSV text file that I was reading and parsing into a visualization. Everything was working before the new additions but now I am getting all sort of problems.

Amid trying to debug I noticed that I am getting NaN values when I tolkenzie the incoming strings - but the strangest part is that I have NaNs where they were fine before...anyone have any ideas why that might be? I'm having trouble locating the source of the trouble...

thanks
Re: help with NaN
Reply #1 - May 9th, 2009, 1:37am
 
I suggest to look at the altered TSV file with a good editor, eg. allowing to visualize the tabs, if there are comas instead of decimal points, such things.
Re: help with NaN
Reply #2 - May 9th, 2009, 9:10am
 
thanks for that. still not sure what the problem was per se but it has mysteriously vanished. something definitely to do with the TSV file...just out of curiosity - could a float with 3 or more decimal places cause trouble?
Page Index Toggle Pages: 1