Re: now it's possible! printing floating point numbers at compile-time

ketmar ketmar at ketmar.no-ip.org
Sun Dec 30 13:45:47 UTC 2018


H. S. Teoh wrote:

>> actually, there is a 3rd issue, which is often overlooked: conversion
>> from string to float. to get a perfect roundtrip, this one should be
>> done right too.
> Doesn't hex output format (e.g. std.format's %a and %A) already solve
> this?  It basically outputs the exact bits in hex. No room for error
> there.
it does. but then you can simply go with writing binaries as-is -- they are 
not really less readable than hex floats. ;-) but we want decimals! ;-)


More information about the Digitalmars-d-announce mailing list