![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: %g and fpformat.sci()
From: Tim Peters <tim.peters@gmail.com>
Date: Thu Jun 30 2005 - 20:55:08 CEST
[Sivakumar Bhaskarapanditha]
You cannot. See a C reference for details; in general, %g is required
If you need to preserve trailing zeroes, then you need to write code
>>> a = 1.234e-5
|