in reply to Wrong output on linux, ok on Win32

Printing out the values of $d and $e on the respective platforms might give you a clue. The rendering of the floating point over/underflow on windows gives rise to a value that can be coerced to a number on Windows (or at least the version of Perl I have.