You could also make a sage matrix from a:
A = matrix(a)
and then perhaps its methods would do what you want.  For example, you
could do
A.change_ring(QQ)
to convert to rational numbers.

-M. Hampton

On Oct 19, 8:57 pm, 李季 <liji.ma...@gmail.com> wrote:
> Dear group,
> I have a question as follow:
>
> import numpy as np
>
> B = np.array([[1, 2, 3], [4, 5, 6]])
>
> Is there any command that I can use to convert B  to  a float-type?
>
> Thanks for any helps.
>
> liji

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to