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-9610] Export swift_decompose_double(), swift_decompose_float(), swift_decompose_float80() and swift_format_exponential() from libswiftCore #52056

Open
norio-nomura opened this issue Jan 7, 2019 · 2 comments
Labels
improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal

Comments

@norio-nomura
Copy link
Contributor

Previous ID SR-9610
Radar None
Original Reporter @norio-nomura
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement, swift-evolution-proposal-needed
Assignee None
Priority Medium

md5: 20a8fa26c183a2c50bde1cabf56949af

Issue Description:

Motivation:

Since Double.description, Float.description and Float80.description uses decimal format on some conditions, but it sometime needs to use exponential in another conditions.

Resolution:

If swift_decompose_double(), swift_decompose_float(), swift_decompose_float80() and swift_format_exponential() are exported from libswiftCore, floating point can be formatted in another conditions.

Currently, it needs to copy SwiftDtoa.h and SwiftDtoa.cpp to project that using them.
e.g: jpsim/Yams#151

@belkadan
Copy link
Contributor

belkadan commented Jan 7, 2019

I think this would have to go through the Swift Evolution Process to choose appropriate names for the operations.

@norio-nomura
Copy link
Contributor Author

I understand that "Swift Evolution Process" is necessary to realize this, but for me it feels that it requires too much effort. 🙁

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal
Projects
None yet
Development

No branches or pull requests

2 participants