1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)d_mod.c	5.1	6/7/85
   7:  */
   8: 
   9: double d_mod(x,y)
  10: double *x, *y;
  11: {
  12: double floor(), quotient = *x / *y;
  13: if (quotient >= 0.0)
  14:     quotient = floor(quotient);
  15: else
  16:     quotient = -floor(-quotient);
  17: return(*x - (*y) * quotient );
  18: }

Defined functions

d_mod defined in line 9; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1893
Valid CSS Valid XHTML 1.0 Strict