Strange behaviour of np.rint function

前端 未结 0 779
北恋
北恋 2021-01-12 00:22

Minimal code:

import numpy as np

np.rint(0.5)   # Output is 0     OK!
np.rint(718.5) # Output is 718   OK!
np.rint(719.5) # Output is 720   WRONG!

相关标签:
回答
  • 消灭零回复
提交回复
热议问题