Thread: Math Help
View Single Post
01-29-12, 11:27 AM   #43
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
btw i found this function on wowwiki. It worked perfectly.

Code:
function truncate(number, decimals)
    return number - (number % (0.1 ^ decimals))
end
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote