120921 Marc Joliet wrote:
> 120921 Philip Webb <purs...@ca.inter.net> 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 could enter when in interactive mode too.
> I couldn't find anything for regular python on the fly
> (except by using the "decimal" module, see
> http://docs.python.org/library/decimal.html#module-decimal

Yes, I found that too, but it requires typing 'Decimal' or 'D'
every time you want the shorter output (grimace).
What I would like is something which applies globally to the output,
but it looks as if there's nothing available.

I can do everything I need via the little script
-- I can predefine variables there ! --
& I don't mind loading "math" every time,
as I have no other present use for interactive Python.
I am now a bit ahead of where I was when I first asked (smile).

Thanks for this & the other reply.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca


Reply via email to