comparison src/pr-output.cc @ 5086:55f5b61d74b7

[project @ 2004-11-19 21:50:50 by jwe]
author jwe
date Fri, 19 Nov 2004 21:50:50 +0000
parents 160365410ad4
children 23b37da9fd5b
comparison
equal deleted inserted replaced
5085:6861a84b1d47 5086:55f5b61d74b7
348 } 348 }
349 349
350 if (print_big_e) 350 if (print_big_e)
351 fmt.uppercase (); 351 fmt.uppercase ();
352 } 352 }
353 else if (inf_or_nan || int_only) 353 else if (! bank_format && (inf_or_nan || int_only))
354 fmt = float_format (fw, rd); 354 fmt = float_format (fw, rd);
355 else 355 else
356 fmt = float_format (fw, rd, std::ios::fixed); 356 fmt = float_format (fw, rd, std::ios::fixed);
357 357
358 curr_real_fmt = &fmt; 358 curr_real_fmt = &fmt;
495 } 495 }
496 496
497 if (print_big_e) 497 if (print_big_e)
498 fmt.uppercase (); 498 fmt.uppercase ();
499 } 499 }
500 else if (int_or_inf_or_nan) 500 else if (! bank_format && int_or_inf_or_nan)
501 fmt = float_format (fw, rd); 501 fmt = float_format (fw, rd);
502 else 502 else
503 fmt = float_format (fw, rd, std::ios::fixed); 503 fmt = float_format (fw, rd, std::ios::fixed);
504 504
505 curr_real_fmt = &fmt; 505 curr_real_fmt = &fmt;
652 { 652 {
653 r_fmt.uppercase (); 653 r_fmt.uppercase ();
654 i_fmt.uppercase (); 654 i_fmt.uppercase ();
655 } 655 }
656 } 656 }
657 else if (inf_or_nan || int_only) 657 else if (! bank_format && (inf_or_nan || int_only))
658 { 658 {
659 r_fmt = float_format (r_fw, rd); 659 r_fmt = float_format (r_fw, rd);
660 i_fmt = float_format (i_fw, rd); 660 i_fmt = float_format (i_fw, rd);
661 } 661 }
662 else 662 else
839 { 839 {
840 r_fmt.uppercase (); 840 r_fmt.uppercase ();
841 i_fmt.uppercase (); 841 i_fmt.uppercase ();
842 } 842 }
843 } 843 }
844 else if (int_or_inf_or_nan) 844 else if (! bank_format && int_or_inf_or_nan)
845 { 845 {
846 r_fmt = float_format (r_fw, rd); 846 r_fmt = float_format (r_fw, rd);
847 i_fmt = float_format (i_fw, rd); 847 i_fmt = float_format (i_fw, rd);
848 } 848 }
849 else 849 else
1003 } 1003 }
1004 1004
1005 if (print_big_e) 1005 if (print_big_e)
1006 fmt.uppercase (); 1006 fmt.uppercase ();
1007 } 1007 }
1008 else if (all_ints) 1008 else if (! bank_format && all_ints)
1009 fmt = float_format (fw, rd); 1009 fmt = float_format (fw, rd);
1010 else 1010 else
1011 fmt = float_format (fw, rd, std::ios::fixed); 1011 fmt = float_format (fw, rd, std::ios::fixed);
1012 1012
1013 curr_real_fmt = &fmt; 1013 curr_real_fmt = &fmt;