<table><tr><td style="">JJRcop added a comment.
</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/D20181">View Revision</a></tr></table><br /><div><div><p>After some quick research I should have done a while ago, I have determined that KFormat is not nearly the same as what KUnitConversion does.</p>
<p>KFormat can take an input number and output a string with the input formatted properly to the desired unit.</p>
<p>KUnitConversion defines objects for various units with functions to convert between them. You can instantiate these objects using a number and unit type. There are a few objects, some defining the Unit itself, and some defining an instance of a Value in a certain Unit. Both of these objects have methods to convert an input into another Unit, which return either an output number or Value object in the new Unit.</p>
<p>I am not able to use KFormat because KFormat takes an input number and only outputs a formatted string. This is exactly what it's designed for and doesn't need any changes, but is just not compatible with what KUnitConversion does as it handles numbers.</p>
<p><a href="https://api.kde.org/frameworks/kunitconversion/html/index.html" class="remarkup-link" target="_blank" rel="noreferrer">https://api.kde.org/frameworks/kunitconversion/html/index.html</a><br />
<a href="https://api.kde.org/frameworks/kcoreaddons/html/classKFormat.html" class="remarkup-link" target="_blank" rel="noreferrer">https://api.kde.org/frameworks/kcoreaddons/html/classKFormat.html</a></p>
<p>I believe no further changes are required for this patch.</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/D20181">https://phabricator.kde.org/D20181</a></div></div><br /><div><strong>To: </strong>JJRcop, broulik, Plasma, ngraham<br /><strong>Cc: </strong>abetts, cfeck, apol, aacid, ngraham, kde-frameworks-devel, LeGast00n, michaelh, bruns<br /></div>