[swift-users] Decimal to Double?
davesweeris at mac.com
Mon Nov 28 13:54:08 CST 2016
> On Nov 28, 2016, at 13:43, Joe Groff via swift-users <swift-users at swift.org> wrote:
>> On Nov 28, 2016, at 11:42 AM, Nevin Brackett-Rozinsky <nevin.brackettrozinsky at gmail.com> wrote:
>> On Mon, Nov 28, 2016 at 2:21 PM, Joe Groff via swift-users <swift-users at swift.org> wrote:
>> ExpressibleByFloatLiteral uses a binary float initial value and so doesn't guarantee decimal accuracy
>> That seems like a flaw in ExpressibleByFloatLiteral that should be fixed.
>> Did anyone ever submit a proposal following the discussion in “[swift-evolution] Allow FloatLiteralType in FloatLiteralConvertible to be aliased to String” where somebody—*runs to check*…oh it was you!—described the proper solution?
> Fixing ExpressibleByFloatLiteral has come up several times, but nobody's formally written up the proposal AFAIK.
I'm in the middle of moving, or I'd do it.
- Dave Sweeris
More information about the swift-users