数字の絶対値を出すには
概要
abs(数字)
で数字の絶対値が出せる
例
print(abs(-13.5)) print(abs(25e4))
-13.5の絶対値を出力する 25×10の4条を出力する
出力
13.5 250000.0
説明
なし
間違えやすい問題
なし