[erlang-questions] Bug? Pretty-printing floating point values

Doug Currie doug.currie@REDACTED
Wed Nov 21 21:37:51 CET 2007


On Wednesday, November 21, 2007 Per Hedeland wrote: 

> that either. I guess way back in the dark ages, someone thought that 20
> was a nice and even number (I hope it wasn't me:-). The 6.30000 form is
> of course just the ~p/~w formatting.

Have you considered using some form of the dragon algorithm?

See:
http://portal.acm.org/citation.cfm?id=989431
http://portal.acm.org/citation.cfm?id=93557

implementations:
http://www.cs.indiana.edu/~burger/fp/
http://netlib.bell-labs.com/netlib/fp/

e

--
Doug Currie
Londonderry, NH, USA




More information about the erlang-questions mailing list