05-06-2012 10:06 PM
How do i remove the NaN in "output/input" array. Also i need to display the top column of "200077670" array like "2000776729".
Solved! Go to Solution.
05-06-2012 10:56 PM
When you divide a 0 by 0 it will give you NaN. Check the values coming in the denominator is a non-zero value since you are trying to calculate percentage (I Guess).
Good Luck.
05-07-2012 01:26 AM
Some of my denominator has values. Is it possible to display it in "0" instead of NaN for both non values and with values?
05-07-2012 02:03 AM
05-07-2012 03:39 AM
something like this?? not very good in this...new to LV
05-07-2012 03:53 AM
I use this to remove NaN from my arrays, hope this helps.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-07-2012 04:08 AM
Thanks that was good but i am required to show the "0" array instead of removing it
05-07-2012 04:13 AM - edited 05-07-2012 04:17 AM
well then just replace the "delete from array" primitive with a "replace array subset primitive" or better with an inplace structure.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-07-2012 04:31 AM
I generally use the following method. 1st one replace the NaN with 0 and the 2nd removes the NaN.
Good Luck.
05-07-2012 04:32 AM
you'd be slower on large arrays 😛
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus