Re: How many bytes in a real ?

2015-08-25 Thread Guillaume Chatelet via Digitalmars-d
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

Re: How many bytes in a real ?

2015-08-24 Thread rsw0x via Digitalmars-d
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 ? http://dlang.org/type.html largest FP size implemented in

How many bytes in a real ?

2015-08-24 Thread Guillaume Chatelet via Digitalmars-d
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 ?

Re: How many bytes in a real ?

2015-08-24 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 24 August 2015 at 21:58:48 UTC, rsw0x 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 ?

Re: How many bytes in a real ?

2015-08-24 Thread Xinok via Digitalmars-d
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

Re: How many bytes in a real ?

2015-08-24 Thread rsw0x via Digitalmars-d
On Monday, 24 August 2015 at 22:08:03 UTC, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 21:58:48 UTC, rsw0x 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

Re: How many bytes in a real ?

2015-08-24 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 24 August 2015 at 22:08:03 UTC, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 21:58:48 UTC, rsw0x 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

Re: How many bytes in a real ?

2015-08-24 Thread Dmitry Olshansky via Digitalmars-d
On 25-Aug-2015 08:28, Dmitry Olshansky wrote: On 25-Aug-2015 01:29, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 22:08:03 UTC, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 21:58:48 UTC, rsw0x wrote: On Monday, 24 August 2015 at 21:55:40 UTC, Guillaume Chatelet wrote: On

Re: How many bytes in a real ?

2015-08-24 Thread Dmitry Olshansky via Digitalmars-d
On 25-Aug-2015 01:29, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 22:08:03 UTC, Guillaume Chatelet wrote: On Monday, 24 August 2015 at 21:58:48 UTC, rsw0x wrote: On Monday, 24 August 2015 at 21:55:40 UTC, Guillaume Chatelet wrote: On linux x86_64 : real.sizeof == 16 but it looks