=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/spexpr.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- OpenXM_contrib2/asir2000/io/spexpr.c 2000/11/08 08:02:51 1.5 +++ OpenXM_contrib2/asir2000/io/spexpr.c 2000/12/13 10:54:09 1.6 @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.4 2000/08/22 05:04:18 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.5 2000/11/08 08:02:51 noro Exp $ */ #include "ca.h" #include "al.h" @@ -103,6 +103,7 @@ static char *buf; extern char DFORMAT[BUFSIZ]; extern int hex_output; extern int fortran_output; +extern int double_output; #define TAIL while ( *OUT ) OUT++; #define PUTS(s) strcat(OUT,s) @@ -303,7 +304,7 @@ Num q; } break; case N_R: - TAIL PRINTF(OUT,"%g",BDY((Real)q)); + TAIL PRINTF(OUT,double_output?"%f":"%g",BDY((Real)q)); break; case N_A: PUTS("("); PRINTR(ALG,(R)BDY((Alg)q)); PUTS(")");