Browse Source

Emscripten fmod() test

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
6b4958e0d2
  1. 12
      emscripten-testcases/fmod.c

12
emscripten-testcases/fmod.c

@ -0,0 +1,12 @@
/*
* This should print "0.00000" but on some Emscripten versions it ends up
* printing "nan" (when executed with NodeJS or Duktape).
*/
#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[]) {
printf("%lf\n", fmod(0.0, 4.0));
return 1;
}
Loading…
Cancel
Save