disguise developers

Python API

Execute Python code in Designer sessions to control and query projects programmatically.

Rational

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)

Copy constructor for Rational

__init__(self, n: int, d: int)

Special Methods

__eq__(self, other: Rational) -> bool

__ne__(self, other: Rational) -> bool

__str__(self) -> str