- Timestamp:
- May 15, 2021, 9:47:17 AM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 9449085
- Parents:
- 7fca832
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r7fca832 rb1e614f4 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Apr 27 18:01:03202113 // Update Count : 13 3012 // Last Modified On : Sat May 15 09:39:21 2021 13 // Update Count : 1342 14 14 // 15 15 … … 659 659 int exp10, len2; \ 660 660 eng( f.val, f.pc, exp10 ); /* changes arguments */ \ 661 /* printf( "%g %d %d %d %s\n", f.val, f.wd, f.pc, exp10, format ); */ \ 661 662 if ( ! f.flags.left && f.wd > 1 ) { \ 662 /* Exponent size (number of digits, 'e', optional minus sign)*/ \663 f.wd -= lrint( floor( log10( abs( exp10 ) ) ) ) + 1 + 1 + (exp10 < 0 ? 1 : 0); \663 /* Exponent size: 'e', optional minus sign, number of digits: log10(0) => undefined */ \ 664 f.wd -= 1 + (exp10 < 0 ? 1 : 0) + lrint( floor( exp10 == 0 ? 0 : log10( abs( exp10 ) ) ) ) + 1; \ 664 665 if ( f.wd < 1 ) f.wd = 1; \ 665 666 } /* if */ \ … … 708 709 if ( ! f.flags.pc ) { /* no precision */ \ 709 710 fmtstr[sizeof(DFMTNP)-2] = f.base; /* sizeof includes '\0' */ \ 710 /* printf( "%g %d %s\n", f.val, f.wd, &fmtstr[star] ); */ \711 /* printf( "%g %d %s\n", f.val, f.wd, &fmtstr[star] ); */ \ 711 712 PrintWithDP2( os, &fmtstr[star], f.wd, f.val ) \ 712 713 } else { /* precision */ \
Note: See TracChangeset
for help on using the changeset viewer.