Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40637

Re: Controlling number of zeros of exponent in scientific notation

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Controlling number of zeros of exponent in scientific notation
Date 2013-03-06 09:03 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-6C4BE8.09034306032013@news.panix.com> (permalink)
References <c2184b42-41be-4930-9501-361296df7679@googlegroups.com>

Show all headers | View raw


In article <c2184b42-41be-4930-9501-361296df7679@googlegroups.com>,
 faraz@squashclub.org wrote:

> Instead of:
> 
> 1.8e-04
> 
> I need:
> 
> 1.8e-004
> 
> So two zeros before the 4, instead of the default 1.

Just out of curiosity, what's the use case here?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Controlling number of zeros of exponent in scientific notation faraz@squashclub.org - 2013-03-05 12:09 -0800
  Re: Controlling number of zeros of exponent in scientific notation Dave Angel <davea@davea.name> - 2013-03-05 15:56 -0500
  Re: Controlling number of zeros of exponent in scientific notation Terry Reedy <tjreedy@udel.edu> - 2013-03-06 00:45 -0500
  Re: Controlling number of zeros of exponent in scientific notation Roy Smith <roy@panix.com> - 2013-03-06 09:03 -0500
    Re: Controlling number of zeros of exponent in scientific notation jmfauth <wxjmfauth@gmail.com> - 2013-03-06 07:16 -0800
  Re: Controlling number of zeros of exponent in scientific notation "Russ P." <Russ.Paielli@gmail.com> - 2013-03-06 11:11 -0800

csiph-web