|
CC78K4 Datasheet, PDF (277/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-45 fmodf
Mathematical Functions
FUNCTION
fmodf finds the remainder of x/y.
HEADER
math.h
FUNCTION PROTOTYPE
float fmodf (float x, float y);
Function
fmodf
Arguments
x ... Numeric value to perform
operation
y ... Numeric value to perform
operation
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 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 U15556EJ1V0UM
277
|
▷ |