Admin Production ni-theme
Current Publication

fmod

LabWindows/CVI

fmod

double fmod (double dividend, double divisor);

Purpose

Computes the floating-point remainder of the division of two double values and returns the result. If divisor is nonzero the result will have the same sign as dividend.

Parameters

Input
Name Type Description
dividend double Contains the value divided by divisor to obtain a floating-point remainder.
divisor double Contains the value that divides dividend to obtain a floating-point remainder.

Return Value

Name Type Description
remainder double Contains the resulting floating-point remainder obtained from (dividend/divisor). If divisor is nonzero, the result has the same sign as dividend; otherwise, the function returns NaN.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Example

Refer to analysis\phasedif.cws for an example of using the fmod function.