Taras Glek <[EMAIL PROTECTED]> wrote:
> Could someoone please send me an example of adding 2 floats together and then
> displaying the resulting number on the screen?
Using IPGPE and doing it the GNU way, it looks like this:
float f1, f2;
printf("%f\n", f1 + f2);
> I coudn't find any info on using the FloatType variables on the net.
Why would you want them? GCC provides all floating point facilities completely
by itself like it does on every other platform. You can use the international
standard ISO C float, double, and long double types, and all operations on them
are fully supported just like on any other platform. In addition, IPGPE, the
alpha version of which I'm just about to release, includes Cygnus Newlib, which
provides full libc (with full printf and all) and full libm (full UNIX libm
functionality). This makes thigns like PalmOS's FloatMgr stuff and MathLib
completely unnecessary.
--
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: [EMAIL PROTECTED] (ARPA TCP/SMTP) (UUCP coming soon)