Jump to content

nans in pops


doc

Recommended Posts

thanks spencer, Silvina over at sesi support gave me a nice solution:

Since a comparison with a NAN is always false, you can try:

if( (testme -testme) != 0)
{
 printf("variable 'testme' is an inf.");
}

thanks for the help!

Link to comment
Share on other sites

thanks spencer, Silvina over at sesi support gave me a nice solution:

Since a comparison with a NAN is always false, you can try:

if( (testme -testme) != 0)
{
 printf("variable 'testme' is an inf.");
}

thanks for the help!

Ah yes, thats a good one to know.

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...