mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
10 years ago
2 changed files with 14 additions and 0 deletions
@ -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…
Reference in new issue