[Tutor] decimal floating point?
michel maho
michel.maho at skynet.be
Tue May 2 16:33:28 CEST 2006
To all
I have the following calculation:
"Je Body Mass Index is",gewicht/lengte**2
The result is a (digital?)floating point figure with with 10 decimal numbers. For =
example 27.2345678487
Did I mis something? I would like to reduce it to one or two decimal =
numbers.(27.2) but round(_,1) does not work.
Is there any other way?
Thank You
Michel Maho
Sorry if this is a second mail.
Something went wrong
Michel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060502/c11185db/attachment.html
More information about the Tutor
mailing list