例如無條件進位,無條件捨去至小數點後2位數,則把原本要進位的數乘上 10 2 也就是 100 ,然後再除以 100.0 。 import math f = 1.234 print(math.ceil(f * ...
確定! 回上一頁