NSNumberFormatter: Using "multiplier" yields incorrect results for decimals

Originator:daniel
Number:rdar://13261973 Date Originated:21-Feb-2013 12:22 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
Summary:
When configured to generate decimal numbers, and using a power-of-ten NSDecimalNumber as the multiplier, NSNumberFormatter apparently does not use decimal arithmetic in -[NSNumberFormatter numberFromString:].

Steps to Reproduce:
Command - U the reduced test-case that is attached to this Radar.

Expected Results:
All green

Actual Results:
Some of the multiplier tests fail due to rounding errors that would not have occurred if the formatter used -[NSDecimalNumber decimalNumberByMultiplyingByPowerOfTen:] or the primitive functions of CoreFoundation.

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!