Tcl Source Code

View Ticket
Login
Ticket UUID: 2666369
Title: inconsistent [format %e] output
Type: Bug Created on: 2009-03-05 22:50:58
Submitter: dgp Assigned to: kennykb
Subsystem: 10. Objects Severity:
Priority: 5 Medium Last modified: 2009-05-01 06:32:31
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.6b1.1
Description:
On Windows:

(win) 1 % format %e 3.11341234
3.113412e+000

On Linux:

% format %e 3.11341234
3.113412e+00

According to the docs:

e or E    Convert  number to scientific notation in the form x.yyye±zz, ...

The Windows results has one too many
digits in the exponent part.

This gets in the way of attempts
to construct filenames from floating
point values in a way that is consistent
across platforms.