https://issues.dlang.org/show_bug.cgi?id=18326
Tiberiu Lepadatu <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Tiberiu Lepadatu <[email protected]> --- (In reply to Răzvan Ștefănescu from comment #0) > And reals smaller than double.min_normal * double.epsilon are printed as 0. > > real rmax = +0x1.fffffffffffffffep+16383L > real rdbl = double.max; > rdbl *= 2; > real rmin = real.min_normal; > > writefln("%a %a %a", rmax, rdbl, rmin) > //outputs inf inf 0x0.0000000000000p+0 > > Probably because formatting functions in phobos use 64 bit snprintf from MS > Runtime which doesn't support reals. > > Related: https://issues.dlang.org/show_bug.cgi?id=9297 On Ubuntu it outputs: 0xf.fffffffffffffffp+16380 0xf.ffffffffffff8p+1021 0x8p-16385. --
