Re: [gentoo-user] Re: Python precision

2012-09-21 Thread Philip Webb
120921 Marc Joliet wrote: > 120921 Philip Webb wrote: >> Is that possible with Python ? -- ie a setting in ascript.py >> to tell Python to display only the 1st 4 places in all output >> without any further input from the user when doing the calculations; >> presumably it wb a command s/he coul

Re: [gentoo-user] Re: Python precision

2012-09-21 Thread Helmut Jarausch
On 09/21/2012 08:31:45 AM, Philip Webb wrote: 120920 Willie WY Wong wrote: > Unless you want to load the math module every time you start Python, > it is perhaps better to create an alias in Bash > using the `-i' option of Python: > alias python-calc='python -i loadmath.py' > or if you only nee

Re: [gentoo-user] Re: Python precision

2012-09-21 Thread Marc Joliet
Am Fri, 21 Sep 2012 02:31:45 -0400 schrieb Philip Webb : [...] > > 120919 Marc Joliet described how to set a level of precision: > > Thanks too, but that's not what I wanted: it's not for printing, > but simply to limit the display to eg 4 decimal places, not 16 ; > the calculations still wb a