|
|
news:39D49C7F.7CCBBAAC@enst.fr...
> Tom Melly wrote:
> >
> > Can I guess? (I know practically nothing about C, and absolutely nothing
> > about it's internals). Assuming that there is nothing different about
the
> > output of the calculation, could it be that, when x_ix is an integer
value,
> > the first example will perform an integer calculation, whereas the
second
> > example will always perform a floating point calculation?
> >
> No no no. x_ix and x_jx are floating point numbers in both examples so
> both cases require a floating point computation...
>
So C will never use integer math on a variable declared as float, even when
the value of the float is an integer?
Post a reply to this message
|
|