Round results a little to get rid of float error

This commit is contained in:
DarkPhoenix
2019-08-21 11:38:14 +03:00
parent 2d96af9fc8
commit 1b2cd62629
2 changed files with 4 additions and 3 deletions

View File

@@ -446,7 +446,7 @@ class Miscellanea(ViewColumn):
return text, tooltip
elif itemGroup in ("Capacitor Recharger", "Capacitor Power Relay", "Capacitor Battery"):
fit = Fit.getInstance().getFit(self.fittingView.getActiveFit())
capGain = fit.getCapGainFromMod(stuff)
capGain = fit.getCapRegenGainFromMod(stuff)
if not capGain:
return "", None
text = formatAmount(capGain, 3, 0, 3, forceSign=True)