"Float to int"의 두 판 사이의 차이

(새 문서: category: 형 변환 ;float to int ;float ==Python== category: Python <source lang='Python'> print( int(10.0) ) # 10 </source> <source lang='Python'> print( type(int(10.0)) )...)
 
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
5번째 줄: 5번째 줄:
==Python==
==Python==
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<syntaxhighlight lang='Python'>
print( int(10.0) )
print( int(10.0) )
# 10
# 10
</source>
</syntaxhighlight>
<source lang='Python'>
<syntaxhighlight lang='Python'>
print( type(int(10.0)) )
print( type(int(10.0)) )
# <class 'int'>
# <class 'int'>
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[float to int]]
* [[int to float]]

2020년 11월 2일 (월) 02:31 기준 최신판

float to int
float

1 Python[ | ]

print( int(10.0) )
# 10
print( type(int(10.0)) )
# <class 'int'>

2 같이 보기[ | ]

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