boost::spirit::real_p some how round ups the value.

Posted by rkbang on Stack Overflow See other posts from Stack Overflow or by rkbang
Published on 2010-03-04T17:33:06Z Indexed on 2010/05/17 1:40 UTC
Read the original article Hit count: 308

Filed under:
|
|

Hello all,

I am using the boost::spirit parser. At one point when I use real_p, the value coming out of the parser stack is 38672000 instead of the actual value, 386731500. Some how it is considering it as a float value, I think. Is there anyway to fix this? Do I need to set the precision of real_p, or am using real_p in the wrong context?

© Stack Overflow or respective owner

Related posts about boost

Related posts about c++