icinga-powershell-framework/lib/core/tools/Set-NumericNegative.psm1

27 lines
447 B
PowerShell
Raw Normal View History

<#
.SYNOPSIS
Sets nummeric values to be negative
.DESCRIPTION
This module sets a numeric value to be negative.
e.g 12 to -12
2019-10-31 12:24:30 -04:00
More Information on https://github.com/Icinga/icinga-powershell-framework
.EXAMPLE
PS> Set-NumericNegative 32
-32
.LINK
2019-10-31 12:24:30 -04:00
https://github.com/Icinga/icinga-powershell-framework
.NOTES
#>
function Set-NumericNegative()
{
param(
$Value
);
$Value = $Value * -1;
return $Value;
}