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:Kaioken [Posts]
Date:9/30/09 8:20 pm
Topic:Re: IsNum()
Post ID:309
Parent ID:307
Next ID:310
As far as robustness and general utility goes, that solution works worse than his. The check here is if the text string is, to quote, "A text string, containing nothing but numbers. ", but text2num() will return a number even if that isn't so, as long as there's any number in the beginning of the string. Meaning your IsNum() will incorrectly return true if given a string like "1abcdefg".

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)