On Tuesday, 25 August 2015 at 00:13:28 UTC, Xinok wrote:
On Monday, 24 August 2015 at 21:55:40 UTC, Guillaume Chatelet
wrote:
On linux x86_64 : real.sizeof == 16 but it looks like only the
first the first 10 bytes are used (ie. 80bits)
Is there a way to know the real size of a real ?
The best I can think of is to use the mant_dig property which
returns the number of bits in the mantissa.
http://dpaste.dzfl.pl/9889b3d0bd5b
Thx for the proposal. I actually found this in std.math which
confirms this is indeed a possibility.
https://github.com/D-Programming-Language/phobos/blob/6681862b4e3a77004e8d6ec1f62cf6587e20f6d4/std/math.d#L228