Numpy - show decimal values in array results

numpy, python

Solution

To avoid integer division, use `numpy.true_divide(A,C)`. You can also put `from __future__ import division` at the top of the file to default to this behavior.

Problem

how do I calculate that an array of python numpy or me of all the calculate decimals and not skip like. ``` >> A = numpy.array ([[1,2,3], [4,5,6], [7,8,9]]). >> C = numpy.array ([[7,8,9], [1,2,3], [4,5,6]]). >> A / C array ([[0, 0, 0], [4, 2, 2], [1, 1, 1]]) ``` but in the first vector would not have to be given to absolute zero `[0.143, 0.250, 0.333]`

Original source