[Tutor] A better way for greatest common divisor

David Hutto smokefloat at gmail.com
Sat Jul 31 05:03:27 CEST 2010


On Fri, Jul 30, 2010 at 10:44 PM, David Hutto <smokefloat at gmail.com> wrote:
> On Fri, Jul 30, 2010 at 10:43 PM, David Hutto <smokefloat at gmail.com> wrote:
>> On Fri, Jul 30, 2010 at 10:25 PM, Richard D. Moores <rdmoores at gmail.com> wrote:
>>> On Fri, Jul 30, 2010 at 17:43, David Hutto <smokefloat at gmail.com> wrote:
>>>> This is the url:
>>>> http://python.pastebin.com/fP3jjqGj
>>>
>>> This is a slight revision, with my suggested changes highlighted:
>>> <http://python.pastebin.com/uFznsUYZ>
>>>
>>> Dick Moores
>>>
>>
>> http://python.pastebin.com/auw36h87
>>
>
> Maybe this time gmail will post the link, it keeps showing blank when I send::
> http://pastebin.com/auw36h87
>


This fixes the floating point 'bug' when numerator is greater than denominator:
http://python.pastebin.com/bJ5UzsBE


More information about the Tutor mailing list