(メモ用)
#サンプルコード
sample.py
num = 0.8571428571428571
print("{:.2}".format(num))
#出力結果
answer.py
0.86
Go to list of users who liked
More than 3 years have passed since last update.
(メモ用)
#サンプルコード
num = 0.8571428571428571
print("{:.2}".format(num))
#出力結果
0.86
Register as a new user and use Qiita more conveniently
Go to list of users who liked