[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] double precision bit representation
From: |
Parthasaradhi Nayani |
Subject: |
Re: [avr-gcc-list] double precision bit representation |
Date: |
Wed, 6 Jul 2005 16:30:24 -0700 (PDT) |
Hello,
Currently avr-gcc supports only float and not double.
The byte pattern given in your query results in a
float value of -1.135254
Nayani P
--- Kitts <address@hidden> wrote:
> Hi all,
>
> I would like to know how a variable declared as
> double is represented with
> avr-libc. What is the maximum and minimum values
> that it can represent and
> with what resolution? I am performing floating point
> math which fails in
> certain occasion where i think it shouldn't. Hence
> my query...
>
> For an example i have a double variable called
> "TempDouble" which is placed
> at the following address in SRAM with each of the
> byte having the given
> value. How do i interpret this value in decimal?
>
> Ram Address: $0B6F $0B70 $0B71 $0B72
> Value: 00 50 91 3F
>
> Thanks in Advance.
> --
> Cheers!
> Kitts
>
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
>
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com