in reply to Re^4: test fails on 64bit uselongdouble Perl
in thread test fails on 64bit uselongdouble Perl

The output of my algorithm is an integer.

So?

I'd rather not do that but it's better than giving wrong results

There's another alternative: Fixing your bug.

  • Comment on Re^5: test fails on 64bit uselongdouble Perl

Replies are listed 'Best First'.
Re^6: test fails on 64bit uselongdouble Perl
by frankcox (Acolyte) on Oct 29, 2009 at 22:04 UTC

    There's another alternative: Fixing your bug.

    This is exactly what I want to do. It's not clear to me yet how to do that but I have some new ideas from this discussion. For example I will play with the idea of controlling the size of the the floats as mentioned by ikegami above. I have already tried explicit rounding rather than using sprintf but I will also try variations of that.

    I should have said above that I may have to remove support for uselongdouble Perls until I can fix this bug. This bug has already been open three days.

      I have already tried explicit rounding rather than using sprintf but I will also try variations of that.

      sprintf, as you used it, didn't round.