OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


denominator

denominator

(lisp module) -- returns the denominator of the canonical reduced form of rational .

Syntax

denominator rational

Inputs

name data type(s) comments
rational a rational  

Output

output data type(s) comments
first an integer  

Description

Returns the bottom half of a fraction expressed as a/b. The fraction is automatically converted to the canonical reduced form, that is, both the denominator and denominator are divided by their highest common divisor, if one exists. 2/4 , for example, would be converted to 1/2 before the numerator is dropped. denominator of an integer returns 1.


Prev Home Next
decompo Up dx->x