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-1674] NSString.doubleValue doesn't support a few formats the Darwin version does #4145

Closed
jpsim opened this issue Jun 3, 2016 · 2 comments
Assignees

Comments

@jpsim
Copy link
Contributor

jpsim commented Jun 3, 2016

Previous ID SR-1674
Radar None
Original Reporter @jpsim
Type Bug
Status Closed
Resolution Done
Environment

DEVELOPMENT-SNAPSHOT-2016-05-31-a on both Darwin and Linux

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: 9cf8b93eb210be0d503598d91cf47a06

Issue Description:

Darwin/Swift Foundation differences getting `NSString.doubleValue`:

Input String Darwin Swift
-------------- ---------- ----------
.2 0.2 0.0
+.2 0.2 0.0
-.2 -0.2 0.0
1.23015e+3 1230.15 1.23015
12.3015e+02 1230.15 12.3015
+1.23015e+3 1230.15 1.23015
+12.3015e+02 1230.15 12.3015
-1.23015e+3 -1230.15 -1.23015
-12.3015e+02 -1230.15 -12.3015
-12.3015e02 -1230.15 -12.3015
@spevans
Copy link
Collaborator

spevans commented Jul 31, 2018

#1644

@spevans
Copy link
Collaborator

spevans commented Aug 1, 2018

This has been fixed in the master branch.

@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