[Tutor] Rounding a Python float to the nearest half integer

Sithembewena Lloyd Dube zebra05 at gmail.com
Fri Oct 8 14:51:37 CEST 2010


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...

-- 
Regards,
Sithembewena Lloyd Dube
http://www.lloyddube.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101008/f8084df3/attachment.html>


More information about the Tutor mailing list