On Mon, 12 Apr 1999, Alan Pinstein wrote:

> NewFloatMgr is Palm's implementation of the double/float/etc. types.
> MathLib, actually does use the types in NewFloatMgr if I remember
> correctly... in the 68k Processor pref panel of CW you'll see that for
> 'Floating Point' you can /should choose 'PalmOS'.

Here is where my confusion comes from.  I created a simple app to
test NewFloatMgr.  So I created a couple of floats and added them, using
NewFloatMgr functions.  Everything was fine.

Then I deleted the #include NewFloatMgr.h line and deleted all my
NewFloatMgr functions and declarations.  Then I just declared two more
variables of double and two of float.  I then added these like:

fp1 = fp2 + fp3;  worked fine, compiled fine.

So, I am confused about why NewFloatMgr is even necessary.  I verified
that I don't have some hidden include to NewFloatMgr by using some
NewFloatMgr functions and the compile errors showed up without the
include.

So, if I can declare a type of double or float and add these numbers
as above, why is NewFloatMgr even necessary.  At first I thought it was
because there was no float or double type but that does not seem to be
the case.

BTW, I am using gcc not CW.

Mike
 
> The NewFloatMgr is included in OS 2 and up.. you can statically link the
> library for OS 1 if you want.
> 
> 
> Alan Pinstein
> Synergy Solutions, Inc.
> http://www.synsolutions.com
> 1-800-210-5293
> 
> 
> >I asked this question a while back and never got an answer.
> >
> >"Why would/should one use NewFloatMgr instead of double, float,
> >etc?"  Can someone list all the resons to use NewFloatMgr.
> >
> >Case in point, I also notice that MathLib, that everyone uses,
> >does not use NewFloatMgr and seems to do just fine.
> >
> >I know this has something to do with code size but are there
> >other reasons to use it?
> >
> >Thanks
> >
> >----------------------------------------------------
> >Shoot-to-Win
> >
> >Protect the 2nd Amendment
> >----------------------------------------------------
> 
> 
> 
> 
> 

----------------------------------------------------
Shoot-to-Win

Protect the 2nd Amendment
----------------------------------------------------

Reply via email to