Changeset c835e7c in mainline


Ignore:
Timestamp:
2005-09-03T20:55:06Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
946b630
Parents:
c4b3e3e
Message:

Printf "E" and "F" format fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/debug/print.c

    rc4b3e3e rc835e7c  
    7070                intval2=fmath_fint(fmath_get_decimal_exponent(num),&intval);
    7171                exponent=intval;
    72                 if ((intval2<0.0)&&(exponent<0)) exponent--;
     72                if ((intval2<0.0)) exponent--;
    7373                num = num / ((fmath_dpow(10.0,exponent)));
    7474               
     
    120120        }
    121121       
    122         if (intval==0.0) {
     122        in1=intval;
     123        if (in1==0.0) {
    123124                if (counter<DEFAULT_DOUBLE_BUFFER_SIZE) buf[counter++]='0';
    124125        } else {
    125                 in1=intval;
    126126                while(( in1>0 )&&(counter<DEFAULT_DOUBLE_BUFFER_SIZE)) {
    127127                       
Note: See TracChangeset for help on using the changeset viewer.