NSDecimalNumberOverflowException when calling KVC @avg on array with NAN
| Originator: | benlenarts | ||
| Number: | rdar://13790980 | Date Originated: | 02-May-2013 12:13 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 10.8 |
| Classification: | Other bug | Reproducible: | Always |
Summary: Using the KVC @avg collection operator on an array of NSNumbers that includes one or more NANs results in a NSDecimalNumberOverflowException Steps to Reproduce: See example project Expected Results: isnan([@[@(NAN)] valueForKeyPath:@"@avg.self"]) Actual Results: [@[@(NAN)] valueForKeyPath:@"@avg.self"] throws an exception.
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!