|
CC78K0S Datasheet, PDF (271/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-22 fmod (normal model only)
Mathematical Functions
FUNCTION
fmod finds the remainder of x/y.
HEADER
math.h
FUNCTION PROTOTYPE
double fmod (double x, double y) ;
Function
fmod
Arguments
x ... Numeric value on which
operation is performed
y ... Numeric value on which
operation is performed
Return Value
Normal ... Remainder of x/y
When x is non-numeric or y is
non-numeric, when y is ±0,
when x is 屉 ... NaN
When x â â and y = ±â ... x
EXPLANATION
⢠Calculates the remainder of x/y expressed with x â i*y. i is an integer.
⢠If y â 0, the return value has the same sign as that of x and the absolute value is less than that of y.
⢠If y is ± 0 or x = ±â, NaN is returned and EDOM is set to errno.
⢠If x is non-numeric or y is non-numeric, NaN is returned.
⢠If y is infinite, x is returned unless x is infinite.
Userâs Manual U14872EJ1V0UM
271
|
▷ |