File:  [DVB] / dietlibc / libm / modf.c
Revision 1.1: download - view: text, annotated - select for diffs
Sun Mar 30 19:19:53 2003 UTC (21 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
more math fixes (Ruby now compiles and works)

#include <math.h>

double modf(double x, double *iptr) {
  double fmod_result = fmod(x,1.0);
  *iptr = x - fmod_result;
  return fmod_result;
}

LinuxTV legacy CVS <linuxtv.org/cvs>