module operator nicht mit double?
-
Hallo leute,
ich wollte grad sowas machen:
double X=45.6; double Y= 5.4; double erg= X%Y;aber das geht wohl nich mit double.. wusste ich gar nich.. gibt das ne andere mögöichkeit?
P.S. ja vll. gehört das ja ins C forum^^
-
-
Gabs erst grad, du kannst auch eine eigene Funktion implementieren...
http://www.c-plusplus.net/forum/viewtopic-var-t-is-214288.html
-
double x=45.4;
double y=5.4;
double erg;
erg=x%y;
Wo ist das Problem?
-
berniebutt schrieb:
Wo ist das Problem?
Wer sagt, dass es eins gibt? Dein Code ist zwar kein Standard-C++ (oder Standard-C) - aber das muss ja kein Problem sein.
