Boost logo

Boost :

Subject: [boost] Floating point truncation bug in qi::float_
From: Henry Tan (henryws_at_[hidden])
Date: 2010-09-28 16:12:37

Hi I am using boost 1.4.1 Spirit::Qi.

I think we have a floating point truncation bug in the qi::float_ parser.
I attached a simple program to repro the bug.

Below are some examples of an input floating point gets truncated (=>) by
the qi::float_:

12312321421421 => 12312321720320.000000
123123214 => 123123216.000000
123233.4124 => 123233.406250

I don't see the same issue with the qi::double_.

Wondering if this is a known issue?



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