Ben Combee wrote:

> > Lastly, if I write
> >
> > y = x / 100.0;
> >
> > will the OS perform a floating-point division because of the
> > 100.0, or will it perform an integer division because both
> > x and y are integers?

> The C language defines how math values are transformed.  Because
> the range of a double is greater than an int, x will be converted
> to a double, the division will be done in FP, then the result will
> be converted back.

If I have

float y;
UInt16 x;

y = x / 100;

will the division take place in FP because of y?


-- 
Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to