mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
262 B
12 lines
262 B
/*
|
|
* 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;
|
|
}
|
|
|