Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2477] NumberFormatter.string(for:) only works with NSNumber #4333

Closed
swift-ci opened this issue Aug 25, 2016 · 2 comments
Closed

[SR-2477] NumberFormatter.string(for:) only works with NSNumber #4333

swift-ci opened this issue Aug 25, 2016 · 2 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-2477
Radar None
Original Reporter vadim (JIRA User)
Type Task
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Task, Linux
Assignee @pushkarnk
Priority Medium

md5: 8a45949926d76ca55335b6a0fb493e31

Issue Description:

NumberFormatter.string(for:) does not work with Double, for example.

guard let number = obj as? NSNumber else { return nil }

guard let number = obj as? NSNumber else { return nil }

@pushkarnk
Copy link
Collaborator

A possible fix: #643

@swift-ci
Copy link
Contributor Author

swift-ci commented Nov 8, 2016

Comment by Vadim Eisenberg (JIRA)

Verified in swift-3.0.1-RELEASE on Ubuntu 15.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants