From 60518143346afc7ec2932e66a3f4b67446dbb5fd Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 11 Apr 2007 16:50:21 +0200 Subject: [PATCH] [svn] Document floor division. --HG-- branch : trunk --- docs/src/designerdoc.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/designerdoc.txt b/docs/src/designerdoc.txt index 339c058..959a79b 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 -- 2.26.2