Documentation on the behavior of +[NSDecimalNumber decimalNumberWithString:] is unclear.
Originator: | frozendevil | ||
Number: | rdar://13520160 | Date Originated: | 27-Mar-2013 02:48 PM |
Status: | Open | Resolved: | No |
Product: | Documentation | Product Version: | |
Classification: | Other Bug | Reproducible: | Always |
Summary: The discussion section in the documentation for +[NSDecimalNumber decimalNumberWithString:] says: "Whether the NSDecimalSeparator is a period (as is used, for example, in the United States) or a comma (as is used, for example, in France) depends on the default locale." But this offers no insight into what determines the "default" locale. I've done some experimenting and none of the obvious places that might affect this value seem to apply (I've detailed what I tried in this stack overflow answer: http://stackoverflow.com/a/15535394/1059264). Steps to Reproduce: Visit https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/Reference/Reference.html and scroll down to the decimalNumberWithString: section. Expected Results: A description of what "default locale" means. Actual Results: No description is present.
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!