mozilla/rust — pull request #2164 by grahame (2012-04-08 17:35:51+00:00)
Title: write out "inf"/"-inf" in float::to_str_common

We were writing out zero when we encountered infinite floating point numbers in float::to_str_common. This fixes that. I chose "inf"/"-inf" as it's what printf(3) does.