chickadee » scheme » numerator

numerator qprocedure
denominator qprocedure

These procedures return the numerator or denominator of their argument; the result is computed as if the argument was represented as a fraction in lowest terms. The denominator is always positive. The denominator of 0 is defined to be 1.

(numerator (/ 6 4))            ===>  3
(denominator (/ 6 4))          ===>  2
(denominator
  (exact->inexact (/ 6 4)))    ===> 2.0