/* Reimplementation of Daniel J. Bernsteins taia library.
 * (C) 2001 Uwe Ohse, <uwe@ohse.de>.
 *   Report any bugs to <uwe@ohse.de>.
 * 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;
}


syntax highlighted by Code2HTML, v. 0.9.1