开发者

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

开发者 https://www.devze.com 2022-12-21 19:20 出处:网络
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 flo

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 i开发者_如何学运维n the wrong context?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号