How about adding rational fraction to Python?

Grant Edwards grante at visi.com
Tue Feb 26 12:28:29 EST 2008


On 2008-02-26, Lie <Lie.1296 at gmail.com> wrote:

>> I'm in the camp that believes that 3/4 does indeed yield the integer 0,
>> but should be spelled 3//4 when that is the intention.
>
> That's creepy for people that are new to programming and doesn't know
> how CPUs work and are used to general mathematics.

I don't know where you went to grade school, but where I went,
we learned about integer division long before we learned about
floating point.

> That means most people.

I guess it must depend on where you went to shool.

> As programming language are now more accessible to regular
> people without specialized Computer Science degree, it is a
> just natural trend that computer arithmetic must be done in an
> expectable manner as seen by those general population not by
> people who holds a CS degree.


-- 
Grant Edwards                   grante             Yow! You were s'posed
                                  at               to laugh!
                               visi.com            



More information about the Python-list mailing list