X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fmath%2Ftrunc.c;h=bd1784848b9d198807e8ddedf62dbb475fcc838f;hp=4682245fc550af7300fdcc6e47189cf394c0356f;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec 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 */ };