X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fremainder.c;h=08f167adf71ae072abf89002ca9f0c5a6a3e3bd4;hb=fa83711012f232a1796473e19a832afed88239a3;hp=a12aaa970651842fd807bedf589fea6a6f92ece3;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/math/remainder.c b/functions/math/remainder.c index a12aaa9..08f167a 100644 --- a/functions/math/remainder.c +++ b/functions/math/remainder.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double remainder( double x, double y ) { /* TODO */ }; -float remainder( float x, float y ) { /* TODO */ }; -long double remainder( long double x, long double y ) { /* TODO */ }; +/* Therx code +{ + return fmod( x, y ); +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double remainder( double x, double y ) { /* TODO */ }; float remainderf( float x, float y ) { /* TODO */ }; long double remainderl( long double x, long double y ) { /* TODO */ };