[swift-users] Decimal to Double?

Joe Groff jgroff at apple.com
Mon Nov 28 13:43:04 CST 2016

> 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.


More information about the swift-users mailing list