www.delorie.com/djgpp/doc/libc/libc_332.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

fmod

Syntax

 
#include <math.h>

double fmod(double x, double y);

Description

This function computes the remainder of x/y, which is x - iy for some integer i such that iy < x < (i+1)y.

Return Value

The remainder of x/y. If x is Inf or NaN, the return value is NaN and errno is set to EDOM. If y is zero, the return value is zero (but errno is not changed).

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004