In Python, how to do that ?
sys.platform only gives 'win32', no info about 32-bit or 64 bit ?
Thanks.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> >>> print "%14.3g\n%14.3e\n%14.3f" % (bignum,bignum,bignum)> 1.23e+009
>1.235e+009> 1234567898.235>> But in practice, we do not know how big is the data in advance when> doing scientific computation in a compiled program.That is irrelevant, the format you display the data in has
no b
What is the exact meaning of %g in Python ?
From Python ducumentation:
%g: Same as "e" if exponent is greater than -4 or less than precision, "f" otherwise.
But if %.mg is used, I don't see the rules. See the following example:
So here it follows the above rule:
>>> print "%.16g" % 0.00