Fixed rounding error and refactored code to showConversion method