X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fremainder.c;h=08f167adf71ae072abf89002ca9f0c5a6a3e3bd4;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=a12aaa970651842fd807bedf589fea6a6f92ece3;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib 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 */ };