#integer division

2 messages · Page 1 of 1 (latest)

dim ferry
#

Is there a way to perform integer division?
The divide operator / only returns a floating point value.

what I want:
1/3 = 0
what I currently get
1/3 = 0.3333333333333335
quiet trench
#

You can do int(1 / 3).