Rational.UnaryNegation Operator
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Negates a specified rational number.
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Shared Operator - ( _
rat As Rational _
) As Rational
public static Rational operator -(
Rational rat
)
public:
static Rational operator -(
Rational rat
)
static let inline (-)
rat:Rational : Rational
JScript does not support overloaded operators.
Parameters
- rat
Type: Microsoft.SolverFoundation.Common.Rational
A rational value.
Return Value
Type: Microsoft.SolverFoundation.Common.Rational
The result of the rat parameter multiplied by negative one (-1).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.