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: | 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)
Change History (6)
by , 12 years ago
Attachment: | lk_karma.cpp added |
---|
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
comment:3 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Still observed for values like '9.9999...' when integer part gets rounded to 10.
by , 11 years ago
comment:4 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
Note:
See TracTickets
for help on using tickets.
Simple main file