X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Ftrunc.c;h=bd1784848b9d198807e8ddedf62dbb475fcc838f;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=4682245fc550af7300fdcc6e47189cf394c0356f;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/math/trunc.c b/functions/math/trunc.c index 4682245..bd17848 100644 --- a/functions/math/trunc.c +++ b/functions/math/trunc.c @@ -15,5 +15,12 @@ long double trunc( long double x ) { /* TODO */ }; // Standard C double trunc( double x ) { /* TODO */ }; + +/* Therx code +{ + return (int) x; +} +*/ + float truncf( float x ) { /* TODO */ }; long double truncl( long double x ) { /* TODO */ };