[Tutor] decimal floating point?

Andre Engels andreengels at gmail.com
Tue May 2 16:48:01 CEST 2006


> You can use string formatting here:
> "Je Body Mass Index is %.1f"%gewicht/lengte**2

Actually, I'm not sure this word work correctly. Better:

"Je Body Mass Index is %.1f"%(gewicht/lengte**2)

that should definitely owrk



--
Andre Engels, andreengels at gmail.com
ICQ: 6260644  --  Skype: a_engels


More information about the Tutor mailing list