now it's possible! printing floating point numbers at compile-time
Nick Treleaven
nick at geany.org
Thu Dec 27 12:46:06 UTC 2018
On Saturday, 22 December 2018 at 20:08:12 UTC, Stefan Koch wrote:
> I came across a short and efficient implementation[0] of the
> grisu2 algorithm for converting floating point numbers into
> strings.
>
> Which I then ported into CTFEable D code.
> Thus enabling you to convert doubles into strings at
> compiletime.
Great! Is the MIT license compatible with Boost? If so I suggest
we include it in Phobos. I remember Andrei was calling for a
Grisu port for CTFE some years ago, but I think licensing of
non-D implementations at the time was an issue.
More information about the Digitalmars-d-announce
mailing list