---
title: "Rational Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Rational.htm
product: "Graphics Mill"
---

# Rational Class
 
Represents signed rational numbers.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public class Rational
```
 
## Remarks
  
Rational number is a number which may be represented as a division of two natural numbers. For example, 3/4, 2/1, 1/6, etc. Not all fractional numbers are rational. For example, a Pi number is *irrational* (i.e. cannot be represented as a division of two natural numbers).
 
This class provides an access to [Dividend](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Rational_Dividend.htm.md) and [Divider](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Rational_Divider.htm.md). A [Divider](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Rational_Divider.htm.md) cannot be zero.
 
## Inheritance Hierarchy
  
- System.Object
    - Aurigma.GraphicsMill.Rational
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [Rational Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Rational.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
