数値のrounding

floatをintにするには、numpy.rint(x).astype(int)でOKらしい。
numpy.rintのほうがnumpy.roundより速いらしい。
http://stackoverflow.com/questions/10873824/how-to-convert-2d-float-numpy-array-to-2d-int-numpy-array

追記(2020/06/29)

以下のリンクの情報によると、exact representationだからオッケーということらしい。

math - Safest way to convert float to integer in python? - Stack Overflow