Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GNU/Linux IDE download package updated to X4 rev 989
31-03-2014, 05:59 PM,
#1
GNU/Linux IDE download package updated to X4 rev 989
GNU/Linux IDE download package updated to X4 rev 989.
http://wiki.pinguino.cc/index.php/Catego...E_Packages
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
02-04-2014, 01:19 PM, (This post was last modified: 04-04-2014, 07:58 AM by djpark.)
#2
RE: GNU/Linux IDE download package updated to X4 rev 989
This 'error' is not new to this version but has been there all the while in printf.c.

When the float value is very close to 0.0, it displays "inf". Now with new version, it displays "-inf". Mathematically the result of (x^y) with y value negative is smaller. In the case of less than -23 in the library means the result is near 0.0.

So I suggest to change the code to reflect the correct result as follow.

Code:
static u8 pprintfl(u8 **out, int value, u8 width, u8 pad, u8 separator, u8 precision)
{
|
    else if (exponent < -23)
    {
        /*
        buffer[0] = '-';
        buffer[1] = 'i';
        buffer[2] = 'n';
        buffer[3] = 'f';
        buffer[4] = '\0';
        return pprints(out, buffer, width, pad);
        */
        int_part = 0;
        frac_part = 0;
    }
|

DJ
Reply
04-04-2014, 09:39 AM,
#3
RE: GNU/Linux IDE download package updated to X4 rev 989
Done.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)