Yes, Mxnn version works fine. Haven't tried your version quim, dunno which will be faster in my case. I am "converting" 2 numbers which are 99% higher than 1000, and sometimes higher than 1000000, each time a players shoots and hits somebody. Considering that its a 32 slots zombie plague server in which people shoot like crazy, this, may affect (slightly) server perfonmance.
If I can, I'll profile both methods to see the difference.