As for the range.. Unfortunately, I need from say 1.0000001 to something
around 99999999 with any number of decimal points (I may eventually go
down to 0.001).  It would require at least three bytes to go fixed
point.  I do take an inverse of this, but can set the answer to another
variable.  Using float just makes this a ton easier.  I have done some
fixed point and even started this in fixed point, but found it to be a
big pain.  Probably what I can do is just limit the ranges of the input
values to the float range/precision.  That would probably work fine.
Correct me if I'm wrong but if I only allowed seven significant digits
to the right of a decimal and seven significant digits to the left, then
I'm ok.  This will easily fit my design requirements.  In fact, I just
realized that I am already forcing numbers less than 1 to have a leading
zero.  This will compensate for the "8th" digit, so never mind (heh)!
Anyway, thanks for the recommendations, always a pleasure to ask you
guys questions.
-Mark Stokes

P.S. Is there a list of unsupported float functions that need to be
implemented?  The docs imply that you need help getting all the
functions done.
PPS. Suggestion.  I think it would be helpful if when using "double",
you should get a compiler error that says that double is not supported.
Is this easy/possible?
PPPS.  Bill, yes, mspgcc does support long long, and I'm using at least
one.  You can refer to doc.txt line 579 (section 5 memory API's) to find
the supported data types.


-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Thomas
Carley
Sent: Wednesday, February 12, 2003 8:16 AM
To: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Double data type?


Would a fixed point representation work well here? If you use base 2
(binary fixed point) it is very efficient. What is the range of data you
need to represent, and with what precision?

On Wed, 12 Feb 2003, Dmitry wrote:

> 64bits doubles are not supported.
> I have no plans to make this support.
>
> only 32bits IEEE754 floats are (somehow) suported.
>
> ~d
>
>
> On Wednesday 12 February 2003 00:17, Mark Stokes wrote:
> > What happened to the double data type that was discussed earlier.  I
> > have found a need for it and was wondering.  Here's my dilemma:
> > I am using 8-digit 7-seg display to represent things on the screen.
> > This means that if I want to represent a floating point number that
is
> > less than one like 0.9999999 I would have a number that is out of
the
> > bounds of the "float" data type.  For example:
> >
> > float floatvar;
> >
> >     floatvar = 0.99999999
> >
> > Then floatvar ends up == 1 which is not helping me.  I need it to ==
> > .99999999 because internally the controller can't deal w/ numbers
(in
> > this particular variable) that are >= 1.0.
> > However, if I take the same code and put on Borland, and use
"double's",
> > then I get the intended result (floatvar ends up == to 0.99999999).
> > {footnote: if I use float in Borland the same thing happens.}
> >
> > Any ideas on when "double" will be available?  What about a new
release
> > of the win32 executables?  Perhaps I'll get the gnu tree working so
that
> > I can make win32 releases, but right now I don't have the time to
mess
> > w/ that.
> >
> > Thanks
> > -Mark
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > Mspgcc-users mailing list
> > Mspgcc-users@lists.sourceforge.net
> > 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
>  ********************************************************************/
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld
http://www.vasoftware.com
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to