Re: [Tutor] decimal floating point?

2006-05-02 Thread Yi Qiang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 michel maho wrote, On 05/02/2006 07:33 AM: > 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

Re: [Tutor] decimal floating point?

2006-05-02 Thread Andre Engels
> 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, [EMAIL PROTECTED] ICQ: 6260644 -- Skype: a_engels ___

Re: [Tutor] decimal floating point?

2006-05-02 Thread Andre Engels
2006/5/2, michel maho <[EMAIL PROTECTED]>: > > 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 woul

[Tutor] decimal floating point?

2006-05-02 Thread michel maho
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