python語(yǔ)言 python中math.trunc(x)和math.floor(x)函數(shù)有什么區(qū)別?
python中math.trunc(x)和math.floor(x)函數(shù)有什么區(qū)別?TRUNC是截?cái)?,只取整?shù)部分,而floor是小于或等于X的最大整數(shù)
python中math.trunc(x)和math.floor(x)函數(shù)有什么區(qū)別?
TRUNC是截?cái)?,只取整?shù)部分,而floor是小于或等于X的最大整數(shù)