/* Reimplementation of Daniel J. Bernsteins taia library. * (C) 2001 Uwe Ohse, . * Report any bugs to . * Placed in the public domain. */ /* @(#) $Id: taia_frac.c 1.4 02/10/17 14:40:18+00:00 uwe@ranan.ohse.de $ */ #include "taia.h" #define N (1000000000.0) double taia_frac (const struct taia *t) { return (t->atto / N + t->nano) / N; }