Skip to content
Myr

Merge pull request #37 from fabiant7t/patch-1

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

Fixed example of a division with a truncated integer result

authored by Armin Ronacher · committed by Armin Ronacher · parents 6057afa, 6ae1285 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/templates.rst+1 added-1 removed
970 unmodified lines
971 ``{{ 1 / 2 }}`` is ``{{ 0.5 }}``.972973//974 Divide two numbers and return the truncated integer result.975 ``{{ 20 / 7 }}`` is ``2``.975 ``{{ 20 // 7 }}`` is ``2``.976977%978 Calculate the remainder of an integer division. ``{{ 11 % 7 }}`` is ``4``.979
387 unmodified lines