Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * IsNumeric V2
- *
- *
- * @author : DraKiNs
- * @date : 04 Jul 2011
- * @update : 11 Jul 2011
- * @thanks : DracoBlue & Garfield
- * @Return : if string is numeric return true, else false (accept negative numbers)
- */
- IsNumeric(const string[])
- {
- for (new i = (string[0] == 0x2D && string[1] ? 1 : 0),j = strlen(string); i < j; i++)
- {
- if (string[i] > 0x39 || string[i] < 0x30) return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement