A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/345119.html below:

unusual exponential formatting puzzle

unusual exponential formatting puzzle unusual exponential formatting puzzlePaul Rubin http
Wed Sep 21 23:26:58 EDT 2005
Neal Becker <ndbecker2 at gmail.com> writes:
> Like a puzzle?  I need to interface python output to some strange old
> program.  It wants to see numbers formatted as:
> 
> e.g.: 0.23456789E01

Yeah, that was normal with FORTRAN.  

> My solution is to print to a string with the '% 16.9E' format, then
> parse it with re to pick off the pieces and fix it up.  Pretty ugly.
> Any better ideas?

That's probably the simplest.

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4