Jump to content

NaN constant


Recommended Posts

Posted

I have had a need to make an array of NaNs several times and would think that this might be a useful addition to the math constants already there. It makes it easier to do checking to seem how many elements were actually assigned values at least once via the isNaN operator.

Posted (edited)

Are you looking for something like this?

post-9667-086408000 1280949868_thumb.png

To get a NaN constant, simply type NaN into any numeric constant.

The "is NaN?" node will automatically adjust to give an array of booleans out if you give it an array of numerics.

Edited by Shaun Hayward
Posted (edited)

I have had a need to make an array of NaNs several times and would think that this might be a useful addition to the math constants already there. It makes it easier to do checking to seem how many elements were actually assigned values at least once via the isNaN operator.

Just get a numeric constant and type NaN inside.

(Curses! Foiled by Shaun again!) Don't you have a job? :lol:

Edited by PaulG.
Posted

Just get a numeric constant and type NaN inside.

(Curses! Foiled by Shaun again!) Don't you have a job? :lol:

Its one of those slow days where I'm the only one left in the office (the rest are in Austin)... At least this way I can feel somewhat productive :P

Posted

Its one of those slow days where I'm the only one left in the office (the rest are in Austin)... At least this way I can feel somewhat productive :P

I've been abandoned at work while other LV elites went to Austin a few times as well. :( But I sure got a lot more done without all the interruptions. :)

Posted
I have had a need to make an array of NaNs several times and would think that this might be a useful addition to the math constants already there. It makes it easier to do checking to seem how many elements were actually assigned values at least once via the isNaN operator.

Obviously others have shown how to make a NaN constant, but I agree that it should be in the constants palette. Please make the suggestion here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.