[SR-9610] Export swift_decompose_double(), swift_decompose_float(), swift_decompose_float80() and swift_format_exponential() from libswiftCore #52056
Labels
improvement
standard library
Area: Standard library umbrella
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 20a8fa26c183a2c50bde1cabf56949af
Issue Description:
Motivation:
Since
Double.description
,Float.description
andFloat80.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()
andswift_format_exponential()
are exported from libswiftCore, floating point can be formatted in another conditions.Currently, it needs to copy
SwiftDtoa.h
andSwiftDtoa.cpp
to project that using them.e.g: jpsim/Yams#151
The text was updated successfully, but these errors were encountered: