2015-04-23 71 views

回答

11

您可以使用.NET [Math]::Ceiling功能,并把结果给[int]

PS > [int][Math]::Ceiling(1.1) 
2 
PS > [int][Math]::Ceiling(1.6) 
2 
PS > 
相关问题