Basic arithmetics issues?
IvanKarpan opened this issue · comments
Maybe I am doing something wrong but:
HHUnitConverter *converter = [HHUnitConverter new];
[converter letUnit:@"kg" convertToUnit:@"g" byMultiplyingBy:1000];
NSNumber *result = [converter value:1 convertedFromUnit:@"kg" toUnit:@"g"];
NSLog(@"Result: %@", result);
Outputs the following:
Result: 3.15076932824001e+161
Either I am misusing the solution or something wrong happens at this basic level of use...
Hi @iameternal. Thanks for your report! The commit above should fix this issue.
Awesome man, thanks a lot! By far the best solution I have seen (the whole framework), handles edge cases too (AU to nm - no problem).