Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-03-08 04:38:09


| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Stefan Slapeta
| Sent: 26 February 2006 15:12
| To: boost_at_[hidden]
| Subject: Re: [boost] OT Query: Robert G. Burger and R. Kent
| Dybvig, "Printing Floating-Point Numbers Quickly and Accurately"
| Paul A Bristow wrote:
| > Sorry for an Off-topic question, but does anyone know of a C/C++
| > Implementation of a C++ algorithm based on the paper by
| > Robert G. Burger and R. Kent Dybvig, entitled:
| > "Printing Floating-Point Numbers Quickly and Accurately"
| > ACM
| subscribers only
| >
| w.cs.indiana.e
| >
| duzSz~burgerzSzFP-Printing-PLDI96.pdf/printing-floating-point-
| numbers.pdf
| >
| For me that's not completely off-topic as I always wished boost could
| provide this algorithms one day :-) However, I'm not really
| an expert in
| this field so I never started working on it.
| Nevertheless, there is an earlier paper by David Gay from
| 1990 for which
| an implementation exists. AFAIK Mozilla's JavaScript
| implementation also
| uses a java port of it. Although I have downloaded Burger's paper
| (published in 1996, IIRC) once, I never investigated what's
| different/improved there.
| Gay's implementation can be found both at
| and
| (seems to be down at the moment).

Thanks for this info - which I have yet to study in detail - still
recovering from a recent successful ascent of Uhuru on Kilimanjaro, the Roof
of Africa :-)))

Burger and Dybvig claim their method is MUCH (70x) faster (avoids explicit
expensive use of rational arithmetic). And it gives explicit control of
rounding. But I have yet to get it to work, no doubt due to my lack of

Thank you.


Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
Phone and SMS text +44 1539 561830, Mobile and SMS text +44 7714 330204
mailto: pbristow_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at