a way to specily floating-point numbers as bit patters

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 9 09:56:46 PDT 2017


Petar Kirov [ZombineDev] wrote:

> Do HexFloats (http://dlang.org/spec/lex#HexFloat) help?

hm. i somehow completely missed "%a" format specifier! yeah, 
"-0x1.55556ep-3" did the trick.

tnx. i should do my homework *before* posting big rants, lol.


More information about the Digitalmars-d-learn mailing list