"Int to float"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
6번째 줄: 6번째 줄:
{{참고|파이썬 float()}}
{{참고|파이썬 float()}}
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<syntaxhighlight lang='Python'>
print( float(10) )
print( float(10) )
# 10.0
# 10.0
</source>
</syntaxhighlight>
<source lang='Python'>
<syntaxhighlight lang='Python'>
print( type(float(10)) )
print( type(float(10)) )
# <class 'float'>
# <class 'float'>
</source>
</syntaxhighlight>


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

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

int to float
float

1 Python[ | ]

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

2 같이 보기[ | ]

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