0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

numpy.float32はisinstanceにおいてPythonのfloat型と認識されない

Posted at

問題

タイトル通りだが、numpy.float32はisintanceにおいてpythonのfloat型として認識されないという問題を発見した

>>> print(isinstance(numpy.float32(5.23), float))
False

ちなみに、numpy.float64はpythonのfloat型として認識される

>>> print(isinstance(numpy.float64(5.23), float))
True

ちなみに

同じ問題がnumpyのGitHubでも唱えられていたので共有しておく

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?