python 整數最大
The greatest integer function is a function (real numbers function) to itself that is defined as follows: it sends any real number to the largest integer that is less than or equal to it.
最大整數函數是一個對其自身定義的函數(實數函數),其定義如下:它將任何實數發送到小于或等于該整數的最大整數。
The greatest integer function of
的最大整數函數
The greatest integer function is related to the fractional part (sometimes denoted

最大整數函數與小數部分 (有時表示為
More about greatest integer function: floor() and ceiling functions | wikipedia
有關最大整數函數的更多信息: floor()和ceiling函數| 維基百科
Python代碼查找最大整數(使用floor()方法) (Python code to find greatest integer (Use of floor() method))
# Python code to find greatest integer
# (Use of floor() method)
import math #importing class
num = float(input("Enter any float number: "))
print("math.floor(num): ", math.floor(num))
num = float(input("Enter another float number: "))
print("math.floor(num): ", math.floor(num))
Output
輸出量
Enter any float number: 56.892
math.floor(num): 56
Enter another float number: -34.567
math.floor(num): -35
翻譯自: https://www.includehelp.com/python/find-greatest-integer-using-floor-method.aspx
python 整數最大