]> pd.if.org Git - pdclib/blobdiff - functions/math/trunc.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / math / trunc.c
index 4682245fc550af7300fdcc6e47189cf394c0356f..bd1784848b9d198807e8ddedf62dbb475fcc838f 100644 (file)
@@ -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 */ };