Changeset bcbc7e4 for libcfa/src


Ignore:
Timestamp:
Aug 15, 2023, 7:53:51 AM (10 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
3fdf2b7
Parents:
329487c
Message:

fix printing of decimal point when manipulator nodp is on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    r329487c rbcbc7e4  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 14 18:37:02 2023
    13 // Update Count     : 1460
     12// Last Modified On : Mon Aug 14 23:07:20 2023
     13// Update Count     : 1466
    1414//
    1515
     
    602602                if ( ! f.flags.eng ) { \
    603603                        len = snprintf( buf, size, format, ##__VA_ARGS__ ); \
    604                         if ( isfinite( f.val ) && ( f.pc != 0 || ! f.flags.nobsdp ) ) { /* if number, print decimal point when no fraction or exponent */ \
     604                        if ( isfinite( f.val ) && ! f.flags.nobsdp ) { /* if number, print decimal point when no fraction or exponent */ \
    605605                                for ( i = 0; i < len && buf[i] != '.' && buf[i] != 'e' && buf[i] != 'E' && \
    606                                                                 buf[i] != 'p' && buf[i] != 'P'; i += 1 ); /* decimal point or scientific ? */ \
     606                                                        buf[i] != 'p' && buf[i] != 'P'; i += 1 ); /* decimal point or scientific ? */ \
    607607                                if ( i == len ) { \
    608608                                        if ( ! f.flags.left ) { \
Note: See TracChangeset for help on using the changeset viewer.