in reply to lenght ()Decapitated?
There are some issues with your code:
First of all, the function is named length, not lenght (and it took me a loong time to learn that length and width are written that way and not lenght and widht...)
Then, you're using gt to compare numbers. While that's technically OK, it will give you surprising results if you expect 1000 to be larger than 16.
If your code "dies", it's always instructive to tell us the error message.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: lenght ()Decapitated?
by JavaFan (Canon) on Nov 24, 2009 at 10:14 UTC | |
|
Re^2: lenght ()Decapitated?
by RobinVossen (Initiate) on Nov 24, 2009 at 10:46 UTC | |
by Corion (Patriarch) on Nov 24, 2009 at 11:14 UTC | |
by RobinVossen (Initiate) on Nov 24, 2009 at 13:34 UTC | |
by Corion (Patriarch) on Nov 24, 2009 at 13:55 UTC | |
by cdarke (Prior) on Nov 24, 2009 at 10:56 UTC | |
by SuicideJunkie (Vicar) on Nov 24, 2009 at 14:33 UTC | |
by ikegami (Patriarch) on Nov 24, 2009 at 16:36 UTC | |
by ikegami (Patriarch) on Nov 24, 2009 at 18:35 UTC |