2023-06-10 Python - float():float(実数)型に変換 Python3 概要 実行結果 表示イメージ 概要float(int/str) int(整数)型→float(実数)型へ変換。 str(10進数文字列)型→float(実数)型へ変換。 組み込み関数 実行結果 inte = 123456 print(type(inte)) print(type(float(inte))) 表示イメージ <class 'int'> <class 'float'>