Clodoaldo Pinto wrote: > Duncan Smith wrote: >> But as you use conversions to float in order to avoid integer division >> in your code examples, it might be best to explain what's going on, even >> if you do have to explain the relevant types. >> > > I changed the comments in the first program that uses float() to: > > # The raw_input() function asks the user for a text > # As a text can't be multiplied or divided the > # float() function tranforms the text into a decimal number
Hmmm, maybe a picky point for a newbie, but since there actually is a decimal module now, you might want to change the description of float(). -- http://mail.python.org/mailman/listinfo/python-list