Boost logo

Boost :

From: Bill Seymour (bsey_at_[hidden])
Date: 2001-05-15 08:17:08


Daryle Walker asked:
>
> I'm not familiar with [fmod and modf]. Could you explain
> their semantics?
>

#include <cmath>

double fmod(double dividend, double divisor);

  Returns the remainder of dividend / divisor.

double modf(double val, double* iptr);

  Stores the integer part of val at *iptr
  and returns the fractional part.

--Bill Seymour


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk