Skip to content
Myr

[svn] Document floor division.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Georg Brandl · committed by Georg Brandl · parent 324a91f · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/src/designerdoc.txt+2 added
365 unmodified lines
366 ``-`` subtract the right operand from the left one.367 ``{{ 1 - 1 }}`` would return ``0``.368 ``/`` divide the left operand by the right one.369 ``{{ 1 / 2 }}`` would return ``0.5``.370 ``//`` divide the left operand by the right one and return a truncated371 integer result: ``{{ 20 // 7 }}`` is ``2``.372 ``*`` multiply the left operand with the right one.373 ``{{ 2 * 2 }}`` would return ``4``.374 ``**`` raise the left operand to the power of the right375 operand. ``{{ 2**3 }}`` would return ``8``.
499 unmodified lines