aboutsummaryrefslogtreecommitdiff
path: root/taia_frac.c
diff options
context:
space:
mode:
Diffstat (limited to 'taia_frac.c')
-rw-r--r--taia_frac.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/taia_frac.c b/taia_frac.c
new file mode 100644
index 0000000..b6b48bc
--- /dev/null
+++ b/taia_frac.c
@@ -0,0 +1,6 @@
+#include "taia.h"
+
+double taia_frac(const struct taia *t)
+{
+ return (t->atto * 0.000000001 + t->nano) * 0.000000001;
+}