def truncate_decimal(a_cell)
    if(a_cell.is_a?(Numeric))
      a_cell = truncate_decimal_to_string(a_cell, 3)
      # Truncate zeros (unless there is only 1 decimal place)
      # eg. 12.10 => 12.1
      #     12.0  => 12.0
      a_cell = BigDecimal.new(a_cell).to_s("F")
    end
    a_cell
  end
def truncate_decimal(a_cell)
    if(a_cell.is_a?(Numeric))
      a_cell = truncate_decimal_to_string(a_cell, 3)
      # Truncate zeros (unless there is only 1 decimal place)
      # eg. 12.10 => 12.1
      #     12.0  => 12.0
      a_cell = BigDecimal.new(a_cell).to_s("F")
    end
    a_cell
  end
Truncates a decimal to 3 decimal places if numeric
 and remove trailing zeros, if more than one decimal place.
 returns a string