2015-04-23 67 views

回答

11

您可以使用.NET [Math]::Ceiling功能,並把結果給[int]

PS > [int][Math]::Ceiling(1.1) 
2 
PS > [int][Math]::Ceiling(1.6) 
2 
PS > 
相關問題