> I realise that one cannot have a half integer :) I meant how would one round > off to the first decimal nearest to either 0.5, or a whole number. > > Ugh...does anyone get what I'm trying to articulate? :)
Multiply by 2, round(), divide by 2? > > On Fri, Oct 8, 2010 at 2:51 PM, Sithembewena Lloyd Dube <zebr...@gmail.com> > wrote: > Hi folks, > > Supposing I had the float 4.4348 and I wished to round it off to the nearest > half-integer upwards or downwards, how would I go about it? > > Many thanks... > > -- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor