On Oct 19, 6: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?

For more information you should probably look at the numpy manual and/
or numpy mailing lists and newsgroups. The direct answer to your
question:

B.astype(float)

-- 
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