[ quantlib-Bugs-3520550 ] Possible bug in rounding.cpp?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3520550 ] Possible bug in rounding.cpp?

SourceForge.net
Bugs item #3520550, was opened at 2012-04-23 01:24
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3520550&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: simon_shakeshaft ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Possible bug in rounding.cpp?

Initial Comment:
Hello,

Applying UpRouding to 0.86313 with precision set to 5 produces 0.86314.  Assuming this behaviour is not 'by-design' then I've attached suggested patch files for ql/math/rouding.cpp and an additional test case in /test-suite/rounding.cpp.

Regards
Simon Shakeshaft

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3520550&group_id=1274

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev