Fwd: [arm-gnu] floating point operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [arm-gnu] floating point operations
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Fwd: [arm-gnu] floating point operations
- From: "Nagendra Pilladi" <nagendrapilladi@xxxxxxxxx>
- Date: Wed, 19 Mar 2008 13:36:51 +0530
Hi,
at floating point caomparisions and typecasting
for example
if ( x < 0)
{
*str++ = '-';
x = -x;
}
here x taken as float then program stuck there
and
for (i=0; i < ndig; i++)
{
k = x;
*str++ = k + '0';
print_text(str);
if (i == (fstyle ? ie : 0)) /* where is decimal point */
*str++ = '.';
x =- (y=k);
x =x*10.0;
}
k as int and x as float
k =x ; statement was not execute
above two conditions not execute
whereis the problem ? please can any one help? let me know
---------- Forwarded message ----------
From: Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
Date: Wed, Mar 19, 2008 at 1:28 PM
Subject: Re: [arm-gnu] floating point operations
To: Nagendra Pilladi <nagendrapilladi@xxxxxxxxx>
Cc: arm-gnu@xxxxxxxxxxxxxxxx
Nagendra Pilladi wrote:
> Hi all
>
> I used this ftoa fun it doesnt working.
> same function was working in PC version compiler
Please clarify 'doesn't work'.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
--
Regards
Nagendra Kumar Pilladi
9963045123