?? fmod.c
字號(hào):
/****************************************************************************/
/* fmod v2.24 */
/* Copyright (c) 1996-2002 Texas Instruments Incorporated */
/****************************************************************************/
#ifndef _MATH
#undef _INLINE
#endif
#include <math.h>
/****************************************************************************/
/* FMOD() - Floating point remainder */
/* */
/* Returns the remainder after dividing x by y an integral number of times.*/
/* */
/****************************************************************************/
double fmod(double x, double y)
{
double d = fabs(x);
/*************************************************************************/
/* if y is too small, any remainder is negligible. */
/*************************************************************************/
if (d - fabs(y) == d) return (0.0);
/*************************************************************************/
/* otherwise, divide; result = dividend - (quotient * divisor) */
/*************************************************************************/
modf(x/y, &d);
return (x - d * y);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -