AnsweredAssumed Answered

vrf Odd or Even

Question asked by rsb on Feb 11, 2002
> Does any one have a simple way of evaluating a number to see if it is odd or even.
>

The traditional way is to divide, truncate and compare
utilizing the basic definition of "even".


In VEE you could do something like

(intPart(a/2)==A/2?"even":"odd")

Stan
---------------------------------------------------------------------
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