avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] [Bug] float: 0/0 =2


From: Bjarne Laursen
Subject: [avr-gcc-list] [Bug] float: 0/0 =2
Date: Tue, 23 Sep 2003 15:34:42 +0200

I discovered another bug in the float libary:

    {
        volatile float a;
        volatile float b;
        volatile float c;
        a=0;
        b=0;
        c= b/a; // divide returns 0x40000000 (2.0)
    }

I use the libary c:\winavr\avr\lib\libm.a

Bjarne Laursen, RoseTechnology



reply via email to

[Prev in Thread] Current Thread [Next in Thread]