AnsweredAssumed Answered

vrf Odd or even detector

Question asked by VRFuser on Aug 13, 2001
the easies way (and fastest) is to check the LSB (leas significant bit)

so: if bit(a,0) is 1 then the number is odd, else even.

        Georg Nied
   Software-Development
Hansestr.7 - 51149 Cologne
        Germany
Mail: info@gn-software.de


> -----Original Message-----
> From: owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com]On
> Behalf Of Kenth.Jensen@nokia.com
> Sent: Tuesday, August 14, 2001 8:41 AM
> To: vrf@lvld.agilent.com
> Subject: vrf Odd or even detector
>
>
> Hi all
>
> Is there a way in VEE to detect if a number is odd or even, I
> couldnt find
> any by browsing through the help or the Function and object browser.
>
> Best regards
>
> Kenth Jensen
> Nokia Mobile Phones
> Copenhagen
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo.  To send messages to
> this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
> unsubscriptions are done through the address
> "vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes