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