---
title: "Rational.Equality Operator"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Rational_op_Equality_2_6900e261.htm
product: "Graphics Mill"
---

# Rational.Equality Operator
 
Tests whether two specified [Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md) instances are equivalent.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static bool operator ==(Rational l,Rational r
)
```
 
### Parameters
 
 - l
     - Type: [Aurigma.GraphicsMill.Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md)
The [Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md) that is to the left of the equality operator.

 - r
     - Type: [Aurigma.GraphicsMill.Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md)
The [Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md) that is to the right of the equality operator.
 
### Return Value
 `true` if the two [Rational](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md) instances are equal; otherwise, `false`.
   
## See Also

### Reference

- [Rational Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
