PowerShell has Infinity

Does PowerShell have a variable or infinity?

Possibly similar to the $ null variable?

I've tried $ inifinity. I also tried 1/0 to generate the value.

+3


source to share


1 answer


There is [double]::PositiveInfinity

. I suspect that if you used 1.0/0.0

, you would get this value. 1/0

should throw an error since there is no infinity value for any of the integral types.



+7


source







All Articles