Added utility method to convert double into a string with approproaite
digits after the decimal point.