lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Not all tests work under Windows, I presume by design (more on this
> after the Linux tests) but I suppose strings.lua should. It fails
> the assert at line 118:
> 
>   assert(tostring(-0.0) == "-0.0")

It passed in "my Windows" (Windows 7-32, VS 2010).  This can be a bug in
libc. Can you test it in C code?

/* untested */
#include <stdio.h>

int main (void) {
  double d = -0.0;
  printf("%.14g\n", d);
  return 0;
}

-- Roberto