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

Return Value

Type: Microsoft.SolverFoundation.Common.Rational
The result of the rat parameter multiplied by negative one (-1).

.NET Framework Security

See Also

Reference

Rational Structure

Microsoft.SolverFoundation.Common Namespace