From: Georg Brandl Date: Wed, 11 Apr 2007 14:50:21 +0000 (+0200) Subject: [svn] Document floor division. X-Git-Tag: 2.0rc1~365 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60518143346afc7ec2932e66a3f4b67446dbb5fd;p=thirdparty%2Fjinja.git [svn] Document floor division. --HG-- branch : trunk --- diff --git a/docs/src/designerdoc.txt b/docs/src/designerdoc.txt index 339c0584..959a79ba 100644 --- a/docs/src/designerdoc.txt +++ b/docs/src/designerdoc.txt @@ -367,6 +367,8 @@ can use expressions. In expressions you can use any of the following operators: ``{{ 1 - 1 }}`` would return ``0``. ``/`` divide the left operand by the right one. ``{{ 1 / 2 }}`` would return ``0.5``. + ``//`` divide the left operand by the right one and return a truncated + integer result: ``{{ 20 // 7 }}`` is ``2``. ``*`` multiply the left operand with the right one. ``{{ 2 * 2 }}`` would return ``4``. ``**`` raise the left operand to the power of the right