例子:
1.11 # not 1.111 1.12 # it was 1.116 (round up) 1.1 # not 1.10 1 # not 1.00
如果我做
$('{0:N2}' -f $flt)
我明白了
1.00 # :(
提前致谢!
[math]::round(1.111,2)
将返回1.11和
[math]::round(1.00,2)
收益率1