Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Impact
~321 people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Aug
12
awarded  Autobiographer
May
21
comment Rewriting repeated integer division with multiplication
While both answers were helpful, I found this much easier to follow.
May
21
awarded  Supporter
May
21
awarded  Scholar
May
21
accepted Rewriting repeated integer division with multiplication
May
21
comment Rewriting repeated integer division with multiplication
Most programming languages that I've seen simply use a/b, and if both a and b are integers, then the operation is performed with integer division. Python 3 introduced syntax that was in some other languages (that I don't know off the top of my head) of having 3 // 2 == 1 and 3 / 2 == 1.5 python.org/dev/peps/pep-0238
May
21
awarded  Student
May
21
asked Rewriting repeated integer division with multiplication