Liam Clarke wrote: > Hi all, > > I was recently playing with the problem of implementing the floor() > functionality, modulo being specifically mentioned in the briefing. > > you could convert the float to a string, split on the decimal point, and convert the left-hand side back to an integer :) or you could just convert the float to an integer. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
- [Tutor] Binary fractions, recommendations? Liam Clarke
- Re: [Tutor] Binary fractions, recommendations? Luke Paireepinart
- Re: [Tutor] Binary fractions, recommendations? Kent Johnson
- Re: [Tutor] Binary fractions, recommendations? Liam Clarke
- Re: [Tutor] Binary fractions, recommendatio... Alan Gauld
- Re: [Tutor] Binary fractions, recommend... Kent Johnson