projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
324a91f
)
[svn] Document floor division.
author
Georg Brandl
<georg@python.org>
Wed, 11 Apr 2007 14:50:21 +0000
(16:50 +0200)
committer
Georg Brandl
<georg@python.org>
Wed, 11 Apr 2007 14:50:21 +0000
(16:50 +0200)
--HG--
branch : trunk
docs/src/designerdoc.txt
patch
|
blob
|
history
diff --git
a/docs/src/designerdoc.txt
b/docs/src/designerdoc.txt
index 339c05843698b213b3df649345f5e880f0c6840d..959a79baa98a212fe7780dd4c0366374f4b89750 100644
(file)
--- 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