Does PowerShell have a variable or value for infinity?
Perhaps similar to the $null variable?
I have tried $inifinity. I have also tried 1/0 to generate the value.
There is [double]::PositiveInfinity
. I suspect if you used 1.0/0.0
you would get this value. 1/0
should produce an error, as there is no infinity value for any of the integral types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With