medeumedeu200 medeumedeu200
  • 06-03-2018
  • Computers and Technology
contestada

Given a positive real number, print its fractional part.

Respuesta :

tonb
tonb tonb
  • 06-03-2018
The modf() function will do this for you:

double x, y, d;
x = -14.876;
y = modf(x, &d);
printf("Fractional part = %lf\n", y);

Answer Link

Otras preguntas

You are asked to calculate an object's velocity, in order to do so you must know the object's ?
How do you say "Justin became one of 2 lead vocalists" in French
True or False: Precipitation is an important part of determining the climate of an area?
What is the action verb in the sentence: the enemy attacked the headquarters
Selena orders CDs for a music shop. She just ordered 8 CDs from each of 11 pop artists and 5 CDs from each of 8 jazz artists. How many CDs did she order altoget
The area near the base of the mountains where piles of crushed rock and rubble lay are called __________ slopes
Industry that requires a large capital investment and that produces items used in other industries is known as _____. a.a heavy industry b.the auto industry
The child gets better without taking any medicine. Explain how.
Where did Marco Polo grow up
There seems to be too much standardized testing in public school