Цитата:
|
Сообщение от Vellion
Вот такой вариант могу предложить...
|
про переполнение слышал?
Код:
#include <math.h>
#include <stdio.h>
main()
{
double x, y, n;
x = -41.56789;
y = modf(x, &n);
printf("modf(%f)=fractional %f and integer : %f",
x, y, n);
}