mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
27 lines
No EOL
445 B
PowerShell
27 lines
No EOL
445 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Sets nummeric values to be negative
|
|
.DESCRIPTION
|
|
This module sets a numeric value to be negative.
|
|
e.g 12 to -12
|
|
|
|
More Information on https://github.com/LordHepipud/icinga-module-windows
|
|
.EXAMPLE
|
|
PS> Set-NumericNegative 32
|
|
-32
|
|
.LINK
|
|
https://github.com/LordHepipud/icinga-module-windows
|
|
.NOTES
|
|
#>
|
|
|
|
|
|
function Set-NumericNegative()
|
|
{
|
|
param(
|
|
$Value
|
|
);
|
|
|
|
$Value = $Value * -1;
|
|
|
|
return $Value;
|
|
} |