title: Decimal sorting with radix sort algorithm with python
body: <p>There are mostly float type numbers in my list and I am getting an error while sorting with radix sort, can you help?</p>
  <pre><code> def countingSortForRadix(inputArray, placeValue):
   
       countArray = [0] * 10
       inputSize = len(inputArray)
   
   
       for i in range(inputSize):
           placeElement = (inputArray[i] // placeValue) % 10
           countArray[placeElement] += 1
   
       for i in range(1, 10):
           countArray[i] += countArray[i - 1]
   
       outputArray = [0] * inputSize
       i = inputSize - 1
       while i &gt;= 0:
           currentEl = inputArray[i]
           placeElement = (inputArray[i] // placeValue) % 10
           countArray[placeElement] -= 1
           newPosition = countArray[placeElement]
           outputArray[newPosition] = currentEl
           i -= 1
       return outputArray
   
   def radixSort(inputArray):
       maxEl = max(inputArray)
       D = 1
       while maxEl &gt; 0:
           maxEl /= 10
           D += 1
       placeVal = 1
       outputArray = inputArray
       while D &gt; 0:
           outputArray = countingSortForRadix(outputArray, placeVal)
           placeVal *= 10
           D -= 1
       return outputArray  
  data=(2.0,67.5,34,12.4,54)  
  print(data)  
  print(radixSort(data))
  </code></pre>
  <h1>I get an error</h1>
  <p>list indices must be integers or slices, not float</p>