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

Diff for /OpenXM_contrib2/asir2000/io/cpexpr.c between version 1.29 and 1.30

version 1.29, 2018/03/29 01:32:53 version 1.30, 2018/03/29 07:50:06
Line 44 
Line 44 
  * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY   * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  * $OpenXM: OpenXM_contrib2/asir2000/io/cpexpr.c,v 1.28 2017/08/31 02:36:21 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/cpexpr.c,v 1.29 2018/03/29 01:32:53 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 122  void PRINTBF(BF a)
Line 122  void PRINTBF(BF a)
   char fbuf[BUFSIZ];    char fbuf[BUFSIZ];
   
   dprec = a->body->_mpfr_prec*0.30103;    dprec = a->body->_mpfr_prec*0.30103;
   sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g');    sprintf(fbuf,"%%.%dR%c",dprec,(double_output==1)?'f':(double_output==2)?'e':'g');
   mpfr_asprintf(&str,fbuf,a->body);    mpfr_asprintf(&str,fbuf,a->body);
   total_length += strlen(str);    total_length += strlen(str);
   mpfr_free_str(str);    mpfr_free_str(str);

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

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