A use for integer quotients

Justin Sheehy justin at iago.org
Tue Jul 24 06:31:56 CEST 2001


Moshe Zadka <moshez at zadka.site.co.il> writes:

> non-issue. Many other languages do division correctly - Scheme, Perl and
> Tcl, for instance.

So, no matter what Python does, you'll think it is correct?

> (/ 3 4)
3/4

% perl -e 'print 3 / 4;print "\n";'
0.75

% expr (3/4)
0

-Justin

 





More information about the Python-list mailing list