Does the following statement always compute the fractional


Does the following statement always compute the fractional part of f correctly? (Assuming that f and frac_part are float variables):

frac_part = f - (int)f;

If not, what is the problem?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Does the following statement always compute the fractional
Reference No:- TGS02253252

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)