1
Header-Datei
math.h
Kategorie
Mathematische Routinen
Prototyp
double fmod(double x, double y);
long double fmodl(long double x, long double y);
Beschreibung
Berechnet x modulo y, den Rest der Division x/y.
fmod berechnet x modulo y (den Rest f, wobei x = ay + f für einen Integer a und 0 < f < y gilt).
fmodl ist die long double Version. Sie erwartet ein Argument vom Typ long double und liefert ein Ergebnis vom Typ long double zurück.
Rückgabewert
fmod und fmodl liefern den Rest f, wobei x = ay + f gilt (wie beschrieben). Wenn y = 0 gilt, liefern fmod und fmodl den Wert 0 zurück.
wenn fmod(double wert,1) != 0 ist es ne kommazahl so long ...