Le 12/07/2012 18:52, Jussi Lahtinen a écrit : >> This is for performance reasons: '\' (or DIV) operator is faster than '/'. >> > > OK. > > > >> If you want to use DIV like '/', just use '/'! >> > > "/" is different thing, it doesn't give integer quotient. > To get integer quotient from floats I use "iQuotient = Floor( a / b )". > > > Jussi
CInt(a / b) is faster. And if iQuotient is already an integer, just doing iQuotient = a / b is a little bit faster again. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ 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/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user