Skip to content

Commit

Permalink
this should be an integer div in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Dec 30, 2014
1 parent 5b8e4bb commit 2121e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/units/basic_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def rad_fn(x, pos=None):
elif n == 2:
return r'$\pi$'
elif n % 2 == 0:
return r'$%s\pi$' % (n/2,)
return r'$%s\pi$' % (n//2,)
else:
return r'$%s\pi/2$' % (n,)

Expand Down

0 comments on commit 2121e2f

Please sign in to comment.