Converts a double to a String the way ECMAScript's Number::toString defines it. Handles every double, including the non-finite ones.
Number::toString