Re: Proposal: Hexadecimal floating point constants

2010-02-23 Thread Nick Bowler
On 12:26 Sat 20 Feb , Heinrich Apfelmus wrote: Nick Bowler wrote: Similarly, the greatest finite double value can be written as 0x1.fp+1023. These constants have the form 0x[HH][.H]p[+/-]DDD If you don't want to wait on an (uncertain) inclusion into the

RE: Proposal: Hexadecimal floating point constants

2010-02-22 Thread Simon Peyton-Jones
| Similarly, the greatest finite double value can be written as | 0x1.fp+1023. | | These constants have the form | |0x[HH][.H]p[+/-]DDD | | If you don't want to wait on an (uncertain) inclusion into the Haskell | standard, you can implement a small helper function to that

Re: Proposal: Hexadecimal floating point constants

2010-02-20 Thread Heinrich Apfelmus
Nick Bowler wrote: I'd like to propose what I believe is a simple but valuable extension to Haskell that I haven't seen proposed elsewhere. C has something it calls hexadecimal floating constants, and it would be very nice if Haskell had it too. For floating point systems where the radix