[ 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 (Comment added) made by lballabio
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: simon_shakeshaft ()
>Assigned to: Luigi Ballabio (lballabio)
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

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

Comment By: Luigi Ballabio (lballabio)
Date: 2012-05-03 23:58

Message:
The patch was applied to the Subversion repository.
Thank you for the report and the fix.


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

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

------------------------------------------------------------------------------
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