Home > Software engineering >  CWgraph controls
CWgraph controls

Time:10-03

Shows how the CWgraph control curve, after reach maximum X axis from scratch show again?

CodePudding user response:

Modifying the original data for the x1 x=fmod (x, x axis maximum)

Fmod
Calculates the floating - point remainder.

Double fmod (double x, double y);

The Function of Required Header Compatibility
Fmod & lt; Math. H> ANSI, Windows 95, Windows NT


For additional compatibility information, see compatibility in the the Introduction.

Libraries

LIBC. LIB Single thread static library, retail version
LIBCMT. LIB Multithread static library, retail version
MSVCRT. LIB Import library for MSVCRT DLL, retail version


The Return Value

Fmod returns the floating - point remainder of x/y. If the value of y is 0.0, fmod returns a quiet NaN. For information about representation of a quiet NaN by the printf family, see printf.

The Parameters

X, y

Floating - point values

Few

The fmod function calculates The floating - point remainder f of x/y to that x=I * y + f, where I is an integer, f has The same sign as x, and The absolute value of f is less than The absolute value of y.

Example

/* FMOD. C: This program displays a
* floating - point remainder.
*/

# include & lt; Math. H>
# include & lt; Stdio. H>

Void main (void)
{
Double w=10.0, x=3.0, y=0.0, z;

Z=fmod (x, y);
Printf (" The remainder of % 2 f/% 2 f is % f \ n ", w, x, z);
Printf (" The remainder of % 2 f/% 2 f is % f \ n ", x, y, z);

}


The Output

The remainder of 10.00/3.00 - is 1.000000


Floating - Point Support Routines

See Also ceil, fabs, floor