Could you check your LANG variable? I'm guessing it is not set to C and that some language specific translation turns the 0.0 into the -Infinity number.