Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 204032

Re: Number array to boolean array

$
0
0

 wrote:

It looks like you are using the Number to Boolean Array primitive.  This converts a *single* number to an array of Booleans.  One way of converting an array of integers to an array of Booleans is to just pass it to the Greater Than 0? primitive.  Any value in the input array that is greater than zero then results in a TRUE value in the output array.


I use "greater than zero" just because my mind accepts "greater than zero" a little more readily than "not equal to zero".  I guess that's because it's a tiny bit less ambiguous.


Viewing all articles
Browse latest Browse all 204032


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>