NumPy around()

Jmnote (토론 | 기여)님의 2017년 12월 7일 (목) 09:57 판 (새 문서: ==개요== ;NumPy around() <source lang='python'> import numpy as np a = np.array([1.2, 1.5, 1.6, 2.5, 3.5, 4.5]) b = np.around(a) print( b ) # [ 1. 2. 2. 2. 4. 4.] </source>...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

NumPy around()
import numpy as np

a = np.array([1.2, 1.5, 1.6, 2.5, 3.5, 4.5])
b = np.around(a)
print( b )
# [ 1.  2.  2.  2.  4.  4.]

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}