Skip to content
Myr

Fixed example of a division with a truncated integer result (it's // instead of /)

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

authored by Fabian Topfstedt · committed by Fabian Topfstedt · parent 6057afa · 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