Opened 12 years ago

Last modified 9 years ago

#4742 new Bugs

Karma produces not the supposed output for a real number generator in scientific mode

Reported by: lars.kielhorn@… Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: spirit
Version: Boost 1.44.0 Severity: Problem
Keywords: karma scientific Cc: lars.kielhorn@…

Description

Hi,

I've tried to compile a simple test example using karma real number generator example from this page: http://www.boost.org/doc/libs/1_44_0/libs/spirit/doc/html/spirit/karma/reference/numeric/real_number.html

When I run the code in which I pass the value '0.1' to the generator it produces 10.0e-02 instead of 1.0e-01 which, actually, is what I want.

Please find my simple test-code in the attachment:

Sincerely

Lars Kielhorn

Attachments (2)

lk_karma.cpp (973 bytes ) - added by lars.kielhorn@… 12 years ago.
Simple main file
karma.cpp (714 bytes ) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (6)

by lars.kielhorn@…, 12 years ago

Attachment: lk_karma.cpp added

Simple main file

comment:1 by Hartmut Kaiser, 12 years ago

Resolution: fixed
Status: newclosed

(In [66050]) Spirit: fixed #4742 (Karma produces not the supposed output for a real number generator in scientific mode)

comment:2 by Hartmut Kaiser, 12 years ago

(In [66051]) Spirit: fixed #4742 (Karma produces not the supposed output for a real number generator in scientific mode), added test

comment:3 by anonymous, 11 years ago

Resolution: fixed
Status: closedreopened

Still observed for values like '9.9999...' when integer part gets rounded to 10.

by anonymous, 11 years ago

Attachment: karma.cpp added

comment:4 by Joel de Guzman, 9 years ago

Owner: changed from Joel de Guzman to Hartmut Kaiser
Status: reopenednew
Note: See TracTickets for help on using tickets.