On Thu, Jan 10, 2013 at 9:12 PM, Pavan Shah <
[hidden email]> wrote:
> Hello,
> I am trying to round time to expiry using quantlib.
> How do i round a double to an int?
> i know i could force type conversion in c++ but that will round a 3.67 to 3
> I believe.
> i don't want that.
Add 0.5 before casting.
--
Oleg Goldshmidt |
[hidden email]
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users