in reply to When is 111111 greater than 0222222?
So your tests could be rewritten as:
if (111111 > 222222){ print "yes\n" } else { print "no\n" } # prints 'no' if (111111 > 74898){ print "yes\n" } else { print "no\n" } # prints "yes"; if (111111 > '0222222'){ print "yes\n" } else { print "no\n" } # prints "no"; if (111 > 146){ print "yes\n" } else { print "no\n" } # prints "no";
NB: Thanks to the Programmer's Cheat Sheet for the conversions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: When is 111111 greater than 0222222?
by Cody Pendant (Prior) on Jun 30, 2003 at 05:36 UTC | |
by PodMaster (Abbot) on Jun 30, 2003 at 06:27 UTC | |
by Cody Pendant (Prior) on Jun 30, 2003 at 06:46 UTC | |
by The Mad Hatter (Priest) on Jun 30, 2003 at 05:41 UTC | |
by Abigail-II (Bishop) on Jun 30, 2003 at 11:49 UTC | |
by cLive ;-) (Prior) on Jun 30, 2003 at 16:58 UTC | |
by Jasper (Chaplain) on Jun 30, 2003 at 11:09 UTC | |
by Cody Pendant (Prior) on Jul 01, 2003 at 00:56 UTC | |
by The Mad Hatter (Priest) on Jul 01, 2003 at 03:10 UTC |