ceiling函數(shù)是什么意思啊 sql server中ceiling函數(shù)是什么意思?
sql server中ceiling函數(shù)是什么意思?Round()根據(jù)舍入將原值轉(zhuǎn)換為指定的小數(shù)位數(shù),如:Round(1.45,0)=1round(1.55,0)=2floor()向下舍入到指定的小數(shù)
sql server中ceiling函數(shù)是什么意思?
Round()根據(jù)舍入將原值轉(zhuǎn)換為指定的小數(shù)位數(shù),如:Round(1.45,0)=1round(1.55,0)=2
floor()向下舍入到指定的小數(shù)位數(shù),如:floor(1.45,0)=1floor(1.55,0)=1
ceiling()向上舍入到指定的小數(shù)位數(shù),例如:ceiling(1.45,0)=2ceiling(1.55,0)=2
ceiling返回大于或等于指定數(shù)值表達(dá)式的最小整數(shù)。
Round是rounding
在sqlserver中使用了ceiling函數(shù):
選擇ceiling($123.45),ceiling($123.45),ceiling($0.0)
開始
下面是結(jié)果集:
---------- - - - - - - - - - - - - - - - - - -