Locale-Sensitive Objective-C Method
Foundation NSDecimalNumber
NSDecimalNumber initWithString
Internationalization (I18n) Method Overview
This is a string to number method.
Click here
for additional Apple Developer Documentation details.
I18n Issues
The locale is not passed in to correctly interpret the decimal separator. Use a method variant that passes in
locale.
Generally one needs to pass in locale , encoding or language to ensure
that any culture-dependent conversion is done properly.
If you determine that the call is i18n-safe, you can use Globalyzer's
Ignore Comment functionality to ensure that it isn't
picked up in a subsequent scan.
For information about Objective-C Internationalization, click here.
|