diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2008-04-11 01:54:18 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2008-04-11 01:54:18 +0000 |
commit | afa44063ca0ff29e39de5d7c2b6424838f6a0cec (patch) | |
tree | d46f0cd854d9a3ef40f71eb801ecf512c84603ab /numpy/lib/utils.py | |
parent | 032390044e1d990da1b571b9a8f150464e479d67 (diff) | |
download | numpy-afa44063ca0ff29e39de5d7c2b6424838f6a0cec.tar.gz |
Add functions for str instead of defining them to the same as repr. Reduce repr
precision of longdouble to 20 and set str precision of longdouble to the same as
double. This is a first cut at looking through the formatting used to print
numbers.
The precisions are now
#define FLOATPREC_REPR 8
#define FLOATPREC_STR 6
#define DOUBLEPREC_REPR 17
#define DOUBLEPREC_STR 12
#if SIZEOF_LONGDOUBLE == SIZEOF_DOUBLE
#define LONGDOUBLEPREC_REPR DOUBLEPREC_REPR
#define LONGDOUBLEPREC_STR DOUBLEPREC_STR
#else /* More than probably needed on Intel FP */
#define LONGDOUBLEPREC_REPR 20
#define LONGDOUBLEPREC_STR 12
#endif
This line, and those below, will be ignored--
M numpy/core/src/scalartypes.inc.src
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions