[Top][All Lists]

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

Re: [avr-gcc-list] Floating Point operations on tiny25

From: jan
Subject: Re: [avr-gcc-list] Floating Point operations on tiny25
Date: Wed, 4 Mar 2009 15:36:58 +0100

On Wed, 04 Mar 2009 18:18:22 -0800
"Rodney McCray" <address@hidden> wrote:

> Does anyone have any working sample code that shows how to convert 10
> bit ADC outputs into floating points using GCC.
> I need to work with floating points on an ATtiny25.
> Best Regards,
> Rodney
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


int main(void)
        int iadc;
        float fadc;

        fadc = (float) iadc;

The big question is, why would you like to do something like that in a
processor like ATtiny25? Why not 32 bit fixed point?


You deserve a better life, dump Windows!

reply via email to

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