summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_approx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_approx.c')
-rw-r--r--src/libstddjb/tain_approx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstddjb/tain_approx.c b/src/libstddjb/tain_approx.c
new file mode 100644
index 0000000..d749cdf
--- /dev/null
+++ b/src/libstddjb/tain_approx.c
@@ -0,0 +1,8 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+double tain_approx (tain_t const *t)
+{
+ return tai_approx(&t->sec) + tain_frac(t) ;
+}