Quote:
Originally Posted by KliPPy
Convert the floating point value to a string then cut off '0' characters from the end.
|
PHP Code:
for(new i = strlen(szArg) - 1; i > 0; i--)
{
if(szArg[i] == '0')
szArg[i] = ' '
else break
}
trim(szArg)
Any shorter way for doing it or a native I haven't noticed?
__________________