octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MinGW and 3 exponent digits


From: Rik
Subject: MinGW and 3 exponent digits
Date: Tue, 12 Nov 2013 12:18:34 -0800

11/12/13

All,

Apparently MinGW provides a work-around for the non-standard Windows
behavior of printing 3 exponent digits through the environment variable
PRINTF_EXPONENT_DIGITS.  If this variable is set to 2 then only two digits
will be displayed.

Sample code:

octave-cli:1> format short e
octave-cli:2> pi
ans =   3.1416e+000
octave-cli:3> setenv ("PRINTF_EXPONENT_DIGITS", "2")
octave-cli:4> pi
ans =    3.1416e+00

Should we look to put something in Octave's start-up code which sets this
environment variable when MinGW is detected?

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]