From: Fabien Potencier Date: Tue, 3 Dec 2013 12:41:40 +0000 (+0100) Subject: minor #1285 Corrected description of the "//" operator (ureimers) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=1747c337cb9602be7937068f848bb54754e04b90;p=web%2Fkonrad%2Ftwig.git minor #1285 Corrected description of the "//" operator (ureimers) This PR was merged into the master branch. Discussion ---------- Corrected description of the "//" operator The operator was previously described to truncate the the value when it in fact floors the result of the division (which can be seen in https://github.com/fabpot/Twig/blob/master/lib/Twig/Node/Expression/Binary/FloorDiv.php#L20). By the old description one would think that ``{{ -20 // 7 }}`` would yield -2 (as in ``(int)(-20/7)``) when it actually returns -3 (as in ``floor(-20/7)``). Floor is not truncate (cast to int). Commits ------- a360bc0 Corrected description of the "//" operator --- 1747c337cb9602be7937068f848bb54754e04b90