<table><tr><td style="">madcatx created this revision.<br />madcatx added a reviewer: broulik.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />madcatx requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20284">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previous code (probably) worked only for l/100 km -> MPG but not the other way around. Fix this by using reciprocal conversion when necessary.</p>
<p>Output:<br />
38.7 MPG -> 6.077 l/100 km; 16.455 km/l; 46.482 MPGI<br />
16.455 km/l -> 6.077 l/100 km; 38.7 MPG<br />
46.48 MPGI -> 6.077 l/100 km</p>
<p>Seems good to me.</p>
<p>Fixes bug 378967</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R292 KUnitConversion</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20284">https://phabricator.kde.org/D20284</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/fuel_efficiency.cpp</div></div></div><br /><div><strong>To: </strong>madcatx, broulik<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>