degrees and radians.

Fernando Pérez fperez528 at yahoo.com
Mon May 6 17:56:52 EDT 2002


Steve Holden wrote:

> Let's make that pi/180.0 so it works before the division unification takes
> place, shall we?
>>
>> In [8]: to_deg = 1/to_rad
>>
>> In [9]: sin pi/4
>> ------> sin (pi/4)
> 
> Similarly this should be pi/4.0
> 

It doesn't matter, math.pi is a float (unless Guido decides to use the 
Congress version of pi==3 ;)

Cheers,

f.



More information about the Python-list mailing list