---
title: "Rational"
description: "API documentation for Rational"
url: https://developer.disguise.one/python-api/docs/rational/
---

# Rational

See also: [Utility Guide](/plugins/guides/utility)

Base class: _\_BlipValue_

## Properties

#### **asDouble** : _float_ _(Read-Only)_

The value of the Rational as a double

#### **denominator** : _int_

#### **isVideoOptimized** : _bool_ _(Read-Only)_

#### **numerator** : _int_

## Constructors

#### **\_\_init\_\_**(self)

#### **\_\_init\_\_**(self, other: _[Rational](/python-api/docs/rational#rational)_)

Copy constructor for Rational

#### **\_\_init\_\_**(self, n: _int_, d: _int_)

## Special Methods

#### **\_\_eq\_\_**(self, other: _[Rational](/python-api/docs/rational#rational)_) -> _bool_

#### **\_\_ne\_\_**(self, other: _[Rational](/python-api/docs/rational#rational)_) -> _bool_

#### **\_\_str\_\_**(self) -> _str_
