19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

25.1.23 signum(self): Z<br />

<strong>The</strong> method signum returns −1 if this rational number is less than zero, 0 if this rational number is zero, and 1 if<br />

this rational number is greater than zero.<br />

For type Q # , the signum of 0/0 is 0/0 .<br />

25.1.24 numerator(self): Z<br />

25.1.25 denominator(self): Z<br />

<strong>The</strong> method numerator returns the numerator of this rational number, and the method denominator returns the<br />

denominator of this rational number, when this rational number is represented in lowest terms (such that the greatest<br />

common divisor of numerator and denominator is 1).<br />

For types Q ∗ and Q # , the numerator of +∞ is 1 , the numerator of −∞ is −1 , and the numerator of 0/0 is 0 ;<br />

the denominator of +∞ , −∞ , or 0/0 is 0 .<br />

198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!