Upvote:2

Try to check the system language and region settings of the iPhone which return nil.

NumberFormatter has 'locale' property, which default value is locale.current.

eg. when locale is "en-DE", '12.9716' will return nil.


Credit Goes to: stackoverflow.com

Related question with same questions but different answers