yes,
ieee754 32bits floats are supported. Either libgcc or libm will do this job.
libgcc does it in a 'correct' way, libm does it faster, but there is little 
attention to infinity and nonumbers - if the situation with these numbers 
occures, the result undefined (mostly computed upon incoming arguments, 
but Nan[*+-/]const == Nan . the same with Inf.)
Also, there is a rounding bug, i suppose, in libgcc (or in libm :) which 
results as a small error in 8th dgt.

~d


On Monday 28 October 2002 22:50, Gus Mercer wrote:
> Are float support at all?
>
> --- dimmy <[email protected]> wrote:
> > floats are not supported in sprintf.
> > At least nobody contributed a reasonable code for it
> >
> > :)
> >
> > neither did I :)
> >
> > ~d
> >
> > P.S. float == double , both 32bits.
> >
> > On Monday 28 October 2002 21:08, you wrote:
> > > Hi,
> > >
> > > Are decimal numbers support by the MSP GCC?
> > > Here is an example of my code.
> > >
> > > int DEBUG(void)
> > > {
> > >   double i;
> > >   i = 45.7;
> > >   sprintf(debugBuff,"%g\r\n",i);
> > >   return (0);
> > > }
> > >
> > > debugBuff = "45"
> > >
> > > I would very much like to see 45.7 in the
> >
> > debugBuff:(
> >
> > > I'm using MSP GCC for windows.
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Y! Web Hosting - Let the expert host your web site
> > > http://webhosting.yahoo.com/
>
> -------------------------------------------------------
>
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Mspgcc-users mailing list
> > > [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> > --
>
> *********************************************************************
>
> >    ("`-''-/").___..--''"`-._     (\       Dimmy the
> > Wild      UA1ACZ
> >     `6_ 6  )   `-.  (     ).`-.__.`)      Enterprise
> > Information Sys
> >     (_Y_.)'  ._   )  `._ `. ``-..-'       Nevsky
> > prospekt,   20 / 44
> >   _..`--'_..-_/  /--'_.' ,'               Saint
> > Petersburg,   Russia
> >  (il),-''  (li),'  ((!.-'                 +7 (812)
> > 314-8860, 5585314
>
> *********************************************************************
>
>
>
>
>
> -------------------------------------------------------
>
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Reply via email to