Re: [Tutor] Float number accuracy

2008-07-10 Thread Julia
On Thu, Jul 10, 2008 at 11:21 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 4:41 PM, Julia <[EMAIL PROTECTED]> wrote: > > I've done this: > > > c = float > c > > > > This is not needed, Python variables do not have types (it is the > values that have type). > >

Re: [Tutor] Float number accuracy

2008-07-10 Thread Kent Johnson
On Thu, Jul 10, 2008 at 4:41 PM, Julia <[EMAIL PROTECTED]> wrote: > I've done this: > c = float c > This is not needed, Python variables do not have types (it is the values that have type). c = 3.3 c > 3.2998 > > I've done it with and without the c = float and sti

Re: [Tutor] Float number accuracy

2008-07-10 Thread Michiel Overtoom
On 10-jul-2008, at 22:41, Julia wrote: >>> c = 3.3 >>> c 3.2998 I've done it with and without the c = float and still it rounds the number down. Why? And more importantly: is it possible to make Python more accurate? I need the exact number and not something close to it for

[Tutor] Float number accuracy

2008-07-10 Thread Julia
I've done this: >>> c = float >>> c >>> c = 3.3 >>> c 3.2998 I've done it with and without the c = float and still it rounds the number down. Why? And more importantly: is it possible to make Python more accurate? I need the exact number and not something close to it for my new appli