In sparselybin switch q array to floats before applying divide and floor
In sparselybin switch q array to floats before applying divide and floor

The same is done in binned histograms.
If not, numpy throws TypeError on trivial integer array cases such as:
>>> q = numpy.array([1,2,3,4])
>>> np.divide(q,1,q)
>>> np.floor(q,q)
which can easily happen if default binning is 1.

histogrammar/histogrammar-python,histogrammar/histogrammar-python