How to force a ndarray show in normal way instead of scientific notation?

后端 未结 2 1567
难免孤独
难免孤独 2021-01-13 16:21

I\'m trying to print a ndarray on the screen. But python always shows it in scientific notation, which I don\'t like. For a scalar we can use

>>> p         


        
2条回答
  •  醉酒成梦
    2021-01-13 16:38

    I don't know about the numpy arrays but I was simply facing the same problem while doing a project in Python.

    Take a look at the Decimal class provided http://docs.python.org/library/decimal.html .

    I don't know if it's provided in numpy though.

提交回复
热议问题