<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>RE: on the way to find pi!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>[Fredrik Lundh]</FONT>
</P>

<P><FONT SIZE=2>#- what's the point of that?  the math module already contains </FONT>
<BR><FONT SIZE=2>#- pi with as many</FONT>
<BR><FONT SIZE=2>#- decimals as you can put in a Python float:</FONT>
<BR><FONT SIZE=2>#- </FONT>
<BR><FONT SIZE=2>#-     $ python</FONT>
<BR><FONT SIZE=2>#-     >>> pi = 3.1415926535897932384</FONT>
<BR><FONT SIZE=2>#-     >>> pi</FONT>
<BR><FONT SIZE=2>#-     3.1415926535897931</FONT>
<BR><FONT SIZE=2>#-     >>> import math</FONT>
<BR><FONT SIZE=2>#-     >>> math.pi</FONT>
<BR><FONT SIZE=2>#-     3.1415926535897931</FONT>
<BR><FONT SIZE=2>#-     >>> pi = math.pi</FONT>
<BR><FONT SIZE=2>#-     True</FONT>
</P>

<P><FONT SIZE=2>And if you want to go beyond that, check <A HREF="http://www.python.org/dev/doc/devel/lib/decimal-recipes.html" TARGET="_blank">http://www.python.org/dev/doc/devel/lib/decimal-recipes.html</A></FONT>
</P>

<P><FONT SIZE=2>>>> from decimal import *</FONT>
<BR><FONT SIZE=2>>>> getcontext().prec = 60</FONT>
<BR><FONT SIZE=2>>>> pi()</FONT>
<BR><FONT SIZE=2>Decimal("3.14159265358979323846264338327950288419716939937510582097494")</FONT>
<BR><FONT SIZE=2>>>> </FONT>
</P>

<P><FONT SIZE=2>.    Facundo</FONT>
</P>

<P><FONT SIZE=2>Bitácora De Vuelo: <A HREF="http://www.taniquetil.com.ar/plog" TARGET="_blank">http://www.taniquetil.com.ar/plog</A></FONT>
<BR><FONT SIZE=2>PyAr - Python Argentina: <A HREF="http://pyar.decode.com.ar/" TARGET="_blank">http://pyar.decode.com.ar/</A></FONT>
</P>
<BR>

<P><B><FONT SIZE=2>  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .</FONT></B></P>

<P><B><U><FONT SIZE=2>ADVERTENCIA.</FONT></U></B>
</P>

<P><B><FONT SIZE=2>La información contenida en este mensaje y cualquier archivo anexo al mismo, son para uso exclusivo del destinatario y pueden contener información confidencial o propietaria, cuya divulgación es sancionada por la ley.</FONT></B></P>

<P><B><FONT SIZE=2>Si Ud. No es uno de los destinatarios consignados o la persona responsable de hacer llegar este mensaje a los destinatarios consignados, no está autorizado a divulgar, copiar, distribuir o retener información (o parte de ella) contenida en este mensaje. Por favor notifíquenos respondiendo al remitente, borre el mensaje original y borre las copias (impresas o grabadas en cualquier medio magnético) que pueda haber realizado del mismo.</FONT></B></P>

<P><B><FONT SIZE=2>Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones Personales S.A. o alguna empresa asociada.</FONT></B></P>

<P><B><FONT SIZE=2>Los mensajes electrónicos pueden ser alterados, motivo por el cual Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación cualquiera sea el resultante de este mensaje.</FONT></B></P>

<P><B><FONT SIZE=2>Muchas Gracias.</FONT></B>
</P>

</BODY>
</HTML>