2022-07-13 今日の学習メモ 学習メモ Pythonで小数点以下を切り捨て・切り上げ: math.floor(), math.ceil() | note.nkmk.me 符号はそのままで0に近づけて値を丸めたい時はint() math.floor()だと負の時に0から遠ざかってしまうため