Does anyone know a good unit conversion library that works with Objective-C? Part of the small application I'm working on requires me to take two items that sell and compare their prices. This means that I will need to convert the values to the base unit for proper comparison.
For example, if I have one item that can be bought for $ 1 per pint, and another that costs $ 3 per gallon, I will need to convert them to a common base unit.
Instead of reinventing the wheel, is there a library out there that can do the base unit conversion for me?
Thank!
, , , , . , , , .
. , , : . , , , .
, " " 1000 , , . , , , . , , , . , , , (, , ).
, , , , .
Objective-C GitHub: https://github.com/HiveHicks/HHUnitConverter. HHUnitConverter-MacOSX-Example , .
, . ( → → → )
python, . Unum PhysicalQuantities - .
google, , , , .
MKUnits - , . iOS. CocoaPods.
It provides units of measurement of physical quantities and simplifies their manipulation. Unit conversion is a very accurate and simple process. You can easily expand it by adding your own units in no time.
I wrote an Objective-c measurement unit called UnitsKit . It does more than your basic transformation, for example, it handles unit multiplication. Check this.