Thread: Math Help
View Single Post
01-27-12, 11:47 AM   #30
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Regardless of what method i use there is an issue with the code... when you floor the math for the cost of the repair the calculations for the faction discounts become off by up to 2 copper... or at least ive seen it up to 2copper its off by one copper most of the time. Any thoughts? My initial thought is to ditch the floor math and create my own flooring function thats a bit more accurate but... if i remove floor it of course displays accurate amounts but has the really long decimal. maybe ditch the floor and add a string sub to remove the decimal and anything after it?

edit -- grr to do the string edit it think i would have to edit my money to string...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]

Last edited by Grimsin : 01-27-12 at 11:51 AM.
  Reply With Quote