Re: [Tutor] [OT] Re: Floating Point Crazines

2011-06-12 Thread R. Alan Monroe
> Python's floats have 52 *binary* places of precision, or approximately > 15 *decimal* places. So even though we may not be able to physically > build a machine capable of aiming a laser to a precision of > 0.001 degrees, at least we can be comforted by the knowledge > that a C double o

Re: [Tutor] [OT] Re: Floating Point Crazines

2011-06-12 Thread Wayne Werner
On Sun, Jun 12, 2011 at 9:11 PM, Steven D'Aprano wrote: > Robert Sjoblom wrote: > >> * Or you just get used to the fact that some numbers are not exact in floating point. >>> This got me thinking. How many decimal places do you need to >>> accurately, say, aim a laser somewhere in a 180

Re: [Tutor] [OT] Re: Floating Point Crazines

2011-06-12 Thread Steven D'Aprano
Robert Sjoblom wrote: * Or you just get used to the fact that some numbers are not exact in floating point. This got me thinking. How many decimal places do you need to accurately, say, aim a laser somewhere in a 180 degree arc accurately enough to hit a dime on the surface of the moon? Alan

[Tutor] [OT] Re: Floating Point Crazines

2011-06-12 Thread Robert Sjoblom
>> * Or you just get used to the fact that some numbers are not exact in >> floating point. > > This got me thinking. How many decimal places do you need to > accurately, say, aim a laser somewhere in a 180 degree arc accurately > enough to hit a dime on the surface of the moon? > > Alan In short: