$sum = $NumberArray | Measure-Object -Minimum
$sum.Minimum
DetailsUse to get the minimum value of a number array
Example
PS C:\> $NumberArray = 10,23,24,43,118,23,43 >> $sum = $NumberArray | Measure-Object -Minimum >> $sum.Minimum 10
Share this:
- Click to share on LinkedIn (Opens in new window)
- Click to share on Mastodon (Opens in new window)
- Click to share on Bluesky (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to share on Facebook (Opens in new window)
- Click to email a link to a friend (Opens in new window)