mercurial/help/templates.txt
changeset 30115 8e42dfde93d1
parent 30012 e83f89d3b1f7
child 30730 107014f4848b
--- a/mercurial/help/templates.txt	Sun Oct 09 15:54:42 2016 +0200
+++ b/mercurial/help/templates.txt	Sun Oct 09 05:51:04 2016 -0700
@@ -43,6 +43,15 @@
 
 .. functionsmarker
 
+We provide a limited set of infix arithmetic operations on integers::
+
+  + for addition
+  - for subtraction
+  * for multiplication
+  / for floor division (division rounded to integer nearest -infinity)
+
+Division fulfils the law x = x / y + mod(x, y).
+
 Also, for any expression that returns a list, there is a list operator::
 
     expr % "{template}"