a way to specily floating-point numbers as bit patters
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 9 10:18:43 PDT 2017
Basile B. wrote:
> enum binFloat = *cast(float*) &b;
i was SO sure that this won't work in CTFE that i didn't even tried to do
it. "it will fail anyway, there is no reason in trying!" ;-)
More information about the Digitalmars-d-learn
mailing list