From cdccf023aab367870fa53273d2078eb4e6ecd807 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 27 Dec 2004 00:11:13 +0000 Subject: add isNaN --- src/lib9/fmt/fltfmt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib9') diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c index 57839ce9..68145ee6 100644 --- a/src/lib9/fmt/fltfmt.c +++ b/src/lib9/fmt/fltfmt.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include "plan9.h" #include "fmt.h" @@ -142,15 +143,15 @@ xdtoa(Fmt *fmt, char *s2, double f) prec = fmt->prec; if(prec > FDIGIT) prec = FDIGIT; - if(isNaN(f)) { + if(__isNaN(f)) { strcpy(s2, "NaN"); return; } - if(isInf(f, 1)) { + if(__isInf(f, 1)) { strcpy(s2, "+Inf"); return; } - if(isInf(f, -1)) { + if(__isInf(f, -1)) { strcpy(s2, "-Inf"); return; } -- cgit v1.2.3