X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Ftrunc.c;fp=functions%2Fmath%2Ftrunc.c;h=4682245fc550af7300fdcc6e47189cf394c0356f;hb=dcc8a8e99f69e090a03b7b868443addbc0817820;hp=0000000000000000000000000000000000000000;hpb=e794d9887cd8f94befd7861e39eccf46666c89fe;p=pdclib.old diff --git a/functions/math/trunc.c b/functions/math/trunc.c new file mode 100644 index 0000000..4682245 --- /dev/null +++ b/functions/math/trunc.c @@ -0,0 +1,19 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +float trunc( float x ) { /* TODO */ }; +long double trunc( long double x ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double trunc( double x ) { /* TODO */ }; +float truncf( float x ) { /* TODO */ }; +long double truncl( long double x ) { /* TODO */ };