[BACK]Return to pexpr_body.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / io

Diff for /OpenXM_contrib2/asir2000/io/pexpr_body.c between version 1.21 and 1.22

version 1.21, 2018/03/29 01:32:53 version 1.22, 2018/03/29 07:50:06
Line 1 
Line 1 
 /* $OpenXM: OpenXM_contrib2/asir2000/io/pexpr_body.c,v 1.20 2017/08/31 02:36:21 noro Exp $ */  /* $OpenXM: OpenXM_contrib2/asir2000/io/pexpr_body.c,v 1.21 2018/03/29 01:32:53 noro Exp $ */
   
 #define PRINTHAT (fortran_output?PUTS("**"):PUTS("^"))  #define PRINTHAT (fortran_output?PUTS("**"):PUTS("^"))
   
Line 756  Num q;
Line 756  Num q;
               }                }
             }              }
           } else if ( real_digit ) {            } else if ( real_digit ) {
             sprintf(real_format,              sprintf(real_format,"%%.%d%c",
               double_output?"%%.%df":"%%.%dg",real_digit);                real_digit,(double_output==1)?'f':(double_output==2)?'e':'g');
             TAIL PRINTF(OUT,real_format,BDY((Real)q));              TAIL PRINTF(OUT,real_format,BDY((Real)q));
           } else {            } else {
             TAIL PRINTF(OUT,double_output?"%f":"%g",BDY((Real)q));              TAIL PRINTF(OUT,(double_output==1)?"%f":(double_output==2)?"%e":"%g",BDY((Real)q));
           }            }
           break;            break;
       }        }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>