diff --git a/nac3standalone/demo/demo.c b/nac3standalone/demo/demo.c index 8f79e75..52af7b6 100644 --- a/nac3standalone/demo/demo.c +++ b/nac3standalone/demo/demo.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -33,7 +34,11 @@ void output_uint64(uint64_t x) { } void output_float64(double x) { - printf("%f\n", x); + if (isnan(x)) { + puts("nan"); + } else { + printf("%f\n", x); + } } void output_asciiart(int32_t x) {