icinga-powershell-framework/lib/core/tools/Set-NumericNegative.psm1
2019-10-31 17:24:30 +01:00

27 lines
No EOL
447 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/Icinga/icinga-powershell-framework
.EXAMPLE
PS> Set-NumericNegative 32
-32
.LINK
https://github.com/Icinga/icinga-powershell-framework
.NOTES
#>
function Set-NumericNegative()
{
param(
$Value
);
$Value = $Value * -1;
return $Value;
}