I'd probably do it like this:
PHP Code:
// This may error if there isn't a '.' or there aren't any characters after the '.' character. Make sure these conditions are met (formatting with %.2f should guarantee it I guess).
new index = strlen(szArg) - 1;
while(szArgs[index] == '0' && szArgs[index - 1] != '.') { --index; }
szArgs[index + 1] = EOS;