On Sun, 13 Jan 2013, D. Michael McIntyre wrote:
>> a) fix it (it must be something really simple and stupid) > > Or complicated an interesting. > > According to three random calculators I tried, -2 mod 12 is 10, which is > clearly the assumption the person writing this code made. > > According to C++, -2 % 12 is -2. I did some googling and modulo calculations with negative numbers are a complicated subject in C++. for example read this http://lessonsincoding.blogspot.nl/2012/03/modulus-with-negative-numbers-in-c-c.html I am glad I am not in a position that I need to care about it. -- MT ------------------------------------------------------------------------------ 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_123012 _______________________________________________ Rosegarden-user mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user
