Originally Posted by Grimsin
btw i found this function on wowwiki. It worked perfectly.
Code:
function truncate(number, decimals)
return number - (number % (0.1 ^ decimals))
end
|
I think you can even use this function to truncate, just don't ask about performance comparison between these two -the one here is probably milliseconds slower:
Code:
function truncate(number, decimals)
return format("%."..decimals.."f", number)
end
Originally Posted by Torhal
Don't you mean WoWPedia?
|
Probably, not all noticed the change, that the old wowwiki team left and made wowpedia under curse, many still use wowwiki because tbh, the transition was somewhat ninja-like...