X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Ftrunc.c;h=c018c06168d76020827bc7a11ca9cc73d0a711bf;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=4682245fc550af7300fdcc6e47189cf394c0356f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/math/trunc.c b/functions/math/trunc.c index 4682245..c018c06 100644 --- a/functions/math/trunc.c +++ b/functions/math/trunc.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double trunc( double x ) { /* TODO */ }; -float trunc( float x ) { /* TODO */ }; -long double trunc( long double x ) { /* TODO */ }; +/* Therx code +{ + return (int) x; +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double trunc( double x ) { /* TODO */ }; float truncf( float x ) { /* TODO */ }; long double truncl( long double x ) { /* TODO */ };