octave-maintainers
[Top][All Lists]
Advanced

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

Re: MinGW and 3 exponent digits


From: John W. Eaton
Subject: Re: MinGW and 3 exponent digits
Date: Tue, 12 Nov 2013 15:33:43 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9

On 11/12/2013 03:18 PM, Rik wrote:
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?

What does it do when this environment variable is set?

Is it not possible to call _set_output_format if we are compiling with MinGW?

jwe




reply via email to

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