Pages: 1 [2] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Steve Ronuken
Fuzzwork Enterprises
482
|
Posted - 2012.07.03 23:05:00 -
[31] - Quote
It /may/ be a floating point issue. I know javascript throws them sometimes with some of the code I've been using. (nothing fancy. just a *100, floor, then /100. I shouldn't end up with 6 decimals, but sometimes it happens. FuzzWork Enterprises http://www.fuzzwork.co.uk/ Blueprint calculator, invention chance calculator, isk/m3 Ore chart-á and other 'useful' utilities. |
Lutz Major
Austriae Est Imperare Orbi Universo
290
|
Posted - 2012.07.04 05:36:00 -
[32] - Quote
Zifrian wrote:Good rundown Lutz but I found that 2.5 is rounded up for some items as well. It's super confusing but appreciate you work in figuring it out. Nothing can be easy, can't it? *sigh* Do you remember which items that were? I tested a some of the items with a raw material quantity of 2 units. And the only other item with one raw and one extra is the Tracking Link. Wildly speculating: Maybe there are differences in the assembly lines? |
Lutz Major
Austriae Est Imperare Orbi Universo
290
|
Posted - 2012.07.04 06:39:00 -
[33] - Quote
Steve Ronuken wrote:It /may/ be a floating point issue. I know javascript throws them sometimes with some of the code I've been using. (nothing fancy. just a *100, floor, then /100. I shouldn't end up with 6 decimals, but sometimes it happens. Yeah, I was thinking the same, but in the end, how can (1+1)*(1*1.2)+1*0.1 = 2.5 (raw+extra)*(SW+PW)+raw*MW generate a floating point defect? No dividends, No more than one digit after the comma. Unless CCP does something really, really wired, ofc ;) |
Lek Arthie
Federal Navy Academy Gallente Federation
12
|
Posted - 2012.07.04 19:27:00 -
[34] - Quote
Was also trying to figure it out but with little success. I think the formula is this: ROUND(basemat+basemat(mewaste+stnwaste+pewaste)) But for those special blueprints like tracking link the only solution i found is that eve doesn't use normal round (arithmetic) instead it uses round to even.
Using round to even for those blueprints does fix the issue with tracking link. Unfortunately it doesn't work with blueprints like mega pulse laser i which is a normal blueprint.
I also don't like my solution either. I don't get why eve would use different rounding. If we can further our search to t2 blueprints similar to tracking link that produce ,5 decimals and investigate it further we might find something. But i'm really low on isk and cant really afford buying t2 bpcs. And those are not available on sisi. I don't think we can be sure of the formula unless we find one that works globally. Anyone else that can continue searching post here if you find anything. |
Lek Arthie
Federal Navy Academy Gallente Federation
12
|
Posted - 2012.07.10 10:45:00 -
[35] - Quote
Well round to even is not correct either... After checking eccm projector ii, only with normal round you can get the correct materials. I dont understand whats so special with that tracking link blueprint... |
|
|
|
Pages: 1 [2] :: one page |
First page | Previous page | Next page | Last page |