Aurora 4x

VB6 Aurora => VB6 Mechanics => Topic started by: Maltay on May 28, 2013, 01:31:08 PM

Title: Calculation Discrepancy Questions
Post by: Maltay on May 28, 2013, 01:31:08 PM
The equation for Production Rate is (CI * 10% + CF) * Construction Rate * Manufacturing Sector Efficiency * (100% + Planetary Governor Bonus + (Sector Governor Bonus * 25%)) = Production Rate

The equation for Fuel Production Rate is (CI * 5% + FR) * Fuel Rate * Manufacturing Sector Efficiency * (100% + Planetary Governor Bonus + (Sector Governor Bonus * 25%)) = Fuel Production Rate


I have a planet with 1,971 CI, 0 CF, 0 FR, a Construction Rate of 10, a Fuel Rate of 20,000, a Manufacturing Sector Efficiency of 97.52%, a 0% Planetary Governor Bonus, and a 0% Sector Governor Bonus.


I should have a Production Rate of (1,971 * 10% + 0) * 10 * 97.52% * (100% + 0% + (0% * 25%)) = 1,922.1.

I should have a Fuel Production Rate of (1,971 * 5% + 0) * 20,000 * 97.52% * (100% + 0% + (0% * 25%)) = 1,922,119.


Instead I have a Production Rate of 1,921.1 and a Fuel Production Rate of 1,911,392.  I do not understand how this is happening.  Does anyone have any insight?
Title: Re: Calculation Discrepancy Questions
Post by: Charlie Beeler on May 28, 2013, 03:10:13 PM
If I recall correctly, VB has some issues with rounding.  Depending on where Steve has rounding in the formulas you will see discrepancies.