LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

determine whether a number is odd or even

Should be quite simple, i need to get a true if a number is odd and a false if the number is even.

Any ideas? I'm sure i am overlooking something simple.

Regards Ross
0 Kudos
Message 1 of 4
(11,281 Views)
Look at this.
Message 2 of 4
(11,281 Views)
You can use the function 'rotate right with carry' and if the output is true
then the input is odd.

"Ross@UL" wrote in message
news:506500000008000000287A0000-1042324653000@exchange.ni.com...
> Should be quite simple, i need to get a true if a number is odd and a
> false if the number is even.
>
> Any ideas? I'm sure i am overlooking something simple.
>
> Regards Ross
0 Kudos
Message 3 of 4
(11,281 Views)
Just another solution. Now you have the choice.
Message 4 of 4
(11,281 Views)