Update formatting.rb

added precision for getting rid of extra decimal places