title: Numpy: How to scale an integer array by an integer value?
body: <p>I have a numpy array with maximum value num. I would like to scale all the values in the array by newMaxValue/num so that the new maximum value of array is newMaxValue. I tried to convert the array to float and make the division afterwards but I cannot seem to divide and multiply it successfully. I always end up with a zero valued array.
  What is the correct way of doing this?
  Thanks</p>