X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fmath%2Fremainder.c;h=170cae210d38a3de11dcbbb68884ca5ad4396980;hp=a12aaa970651842fd807bedf589fea6a6f92ece3;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/math/remainder.c b/functions/math/remainder.c index a12aaa9..170cae2 100644 --- a/functions/math/remainder.c +++ b/functions/math/remainder.c @@ -1,19 +1,17 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ -// ---------------------------------------------------------------------------- -// C++ - -float remainder( float x, float y ) { /* TODO */ }; -long double remainder( long double x, long double y ) { /* TODO */ }; +double remainder( double x, double y ) { /* TODO */ }; -// ---------------------------------------------------------------------------- -// Standard C +/* Therx code +{ + return fmod( x, y ); +} +*/ -double remainder( double x, double y ) { /* TODO */ }; float remainderf( float x, float y ) { /* TODO */ }; long double remainderl( long double x, long double y ) { /* TODO */ };