Re: gnu software bugs - long double

2013-11-03 Thread Mischa Baars
On 11/03/2013 12:29 AM, Rob wrote: Sat, Nov 02, 2013, Mischa Baars: On 11/02/2013 11:19 PM, Jonathan Wakely wrote: On 2 November 2013 22:12, Mischa Baars wrote: And 1.1 is not representable as long double. If you are willing to stop being so arrogant for a few minutes and learn something try

Re: gnu software bugs - long double

2013-11-02 Thread Rob
Sat, Nov 02, 2013, Mischa Baars: > On 11/02/2013 11:19 PM, Jonathan Wakely wrote: > >On 2 November 2013 22:12, Mischa Baars wrote: > > > >And 1.1 is not representable as long double. > > > >If you are willing to stop being so arrogant for a few minutes and > >learn something try running this progra

Re: gnu software bugs - long double

2013-11-02 Thread Jonathan Wakely
On 2 November 2013 22:40, Mischa Baars wrote: > > There's no converting to any string in your example. You only convert source > code strings into their corresponding doubles. Right. I never claimed my example converts to string, I said your example does. > What I'm trying to point out is that th

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 11:19 PM, Jonathan Wakely wrote: On 2 November 2013 22:12, Mischa Baars wrote: On 11/02/2013 11:06 PM, Jonathan Wakely wrote: On 2 November 2013 21:52, Mischa Baars wrote: You are mistaken :) Indeed some rational numbers can only be represented up to a certain number of bits, li

Re: gnu software bugs - long double

2013-11-02 Thread Jonathan Wakely
On 2 November 2013 22:12, Mischa Baars wrote: > On 11/02/2013 11:06 PM, Jonathan Wakely wrote: >> >> On 2 November 2013 21:52, Mischa Baars wrote: >>> >>> You are mistaken :) >>> >>> Indeed some rational numbers can only be represented up to a certain >>> number >>> of bits, like 1 / 3. Others can

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 11:06 PM, Jonathan Wakely wrote: On 2 November 2013 21:52, Mischa Baars wrote: You are mistaken :) Indeed some rational numbers can only be represented up to a certain number of bits, like 1 / 3. Others can be exactly represented, like 1 / 8. All real numbers, and therefore all r

Re: gnu software bugs - long double

2013-11-02 Thread Jonathan Wakely
On 2 November 2013 21:52, Mischa Baars wrote: > You are mistaken :) > > Indeed some rational numbers can only be represented up to a certain number > of bits, like 1 / 3. Others can be exactly represented, like 1 / 8. > > All real numbers, and therefore all rational numbers, can be represented up >

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 09:11 PM, David Given wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/11/13 19:48, Mischa Baars wrote: [...] I have written a couple of new trigonometric functions for use in the library, and actually I need this to function properly. The point is that 1.1 simply canno

Re: gnu software bugs - long double

2013-11-02 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/11/13 19:48, Mischa Baars wrote: [...] > I have written a couple of new trigonometric functions for use in > the library, and actually I need this to function properly. The point is that 1.1 simply cannot be represented precisely as a IEEE float

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 08:28 PM, Jonathan Wakely wrote: On 2 November 2013 18:59, Mischa Baars wrote: On 11/02/2013 07:57 PM, Ian Lance Taylor wrote: On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars wrote: Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'ma

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 08:28 PM, Jonathan Wakely wrote: On 2 November 2013 18:59, Mischa Baars wrote: On 11/02/2013 07:57 PM, Ian Lance Taylor wrote: On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars wrote: Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'ma

Re: gnu software bugs - long double

2013-11-02 Thread Jonathan Wakely
On 2 November 2013 18:59, Mischa Baars wrote: > On 11/02/2013 07:57 PM, Ian Lance Taylor wrote: >> >> On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars >> wrote: >>> >>> Here's the examples again, now each bug in a separate file. Hope it >>> helps... >>> >>> Just compile with 'make' and run the execut

Re: gnu software bugs - long double

2013-11-02 Thread Mischa Baars
On 11/02/2013 07:57 PM, Ian Lance Taylor wrote: On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars wrote: Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'make' and run the executable. The source code is documented, so any questions you might have will

Re: gnu software bugs - long double

2013-11-02 Thread Ian Lance Taylor
On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars wrote: > > Here's the examples again, now each bug in a separate file. Hope it helps... > > Just compile with 'make' and run the executable. The source code is > documented, so any questions you might have will probably be answered by > reading the com

gnu software bugs - long double

2013-11-02 Thread Mischa Baars
Hi, Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'make' and run the executable. The source code is documented, so any questions you might have will probably be answered by reading the comments. Regards, Mischa. On 11/02/2013 07:10 PM, Dan Ke