2026年9月19日 15時30分

【Python】少数第〇〇位までを四捨五入する

最終更新:2026年9月21日 14時07分

#少数第2位まで四捨五入

number = 3.14159

print(round(number, 2)) # Output: 3.14

カテゴリー:技術・開発

タグ: