Added the is_num() function and fixed the other number checking functions.
Authored by: bugman 2009-08-21
Parent: [r9367]
Child: [r9369]