Index · Preferences · Help
Policy · Discussion · AI · Calculations · Engine · Graphics · Interface · Lists · Movement · Objects · Players · Samples · Saving · Sound · Text · Time · Turfs · Utility
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (6)] [Return to Text]

Author:Kuraudo [Posts]
Date:9/30/09 8:32 pm
Topic:Re: IsNum()
Post ID:310
Parent ID:309
Next ID:311
Kaioken wrote:
> As far as robustness and general utility goes

I suppose you could argue that returning true if "1a" is given isn't what he wanted, but you can't argue that it's invalid in terms of robustness and general utility; I would argue that if text2num() generates a number from it, it should be considered a number. There are only a handful of cases I can think of where you would specifically need to make sure that the characters are only numeric, since most cases of using a number from a text string will involve a conversion via text2num() anyway.

Messages in this Thread: [Show All (6)]

  IsNum() Metamorphman (9/22/09 8:24 am)
      Re: IsNum() Kuraudo (9/24/09 7:27 pm)
          Re: IsNum() Kaioken (9/30/09 8:20 pm)
              Re: IsNum() Kuraudo (9/30/09 8:32 pm)
                  Re: IsNum() Kaioken (9/30/09 9:16 pm)
          Re: IsNum() Metamorphman (9/25/09 3:02 am)