Good day! There is a variable $ a = 37.5 (with a comma) in powershell . How to round it up to integers? I tried this:
[math]::Round($a, 0) An error is displayed:
Не удается найти перегрузку для "Round" и количества аргументов: "2". строка:1 знак:1 + [math]::Round($a, 0) + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodException + FullyQualifiedErrorId : MethodCountCouldNotFindBest When I enter the value itself, instead of the variable
[math]::Round(37,5, 0) then everything works:
37
[math]::Round(37,5, 0)- Here you have 3 parameters. - vp_arth