Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Is Float check in String
- IsFloat(string[])
- {
- if(string[0] == '.' || string[strlen(string) - 1] == '.') return 0;
- for(new i, j = strlen(string), bool:b; i != j; ++i) {
- if((string[i] > '9' || string[i] < '0') && string[i] != '.') return 0;
- if(string[i] == '.') {
- if(b) return false;
- b=true;
- }
- }
- return 1;
- }
- // Criado por Bruno da Silva
- // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement