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

find the measure of each angle indicated
QUESTION 1 Most scientists think that life arose spontaneously from nonliving chemicals in the “primordial soup” of ancient Earth. The formation of life from
Programs that reduce stress have been found to ________ the progression from hiv infection to aids. compared with available drug treatments, these stress-reduct
Find the measure of each angle indicated
Which neural pathway carries crude information about a threatening stimulus and activates a rapid instinctual alarm response? a.the thalamushypothalamusvisual
What are the steps to managing ones emotions?
How do you solve this ? Plz help :)
A recipe calls for 1 part beans to 1-1/2 parts rice. If 1-1/2 parts of beans are used how much rice should be used
What does verbs mean
The function below shows the number of car owner f(t), in thousands, in a city in different years t: f(t) = 0.25t2 - 0.5t + 3.5. 5he average rate of change of f