> > atof:: String -> Float > > atof s = read s > > works fine except that it fails for some reasonable inputs like "2" and there > is no way of detecting and handling failures. I am just about to code an > `atof' for them but was wondering if there is a better way. I thought Haskell 1.3 allowed "2" as a valid Float for read. What implementation are you using? -- Lennart
- reading numbers Chris Dornan
- Re: reading numbers Lennart Augustsson
- Re: reading numbers Chris Dornan
- Re: reading numbers Simon L Peyton Jones
- Re: reading numbers Lennart Augustsson