tighten promised contract of denominator
This commit is contained in:
parent
8b8e3913a8
commit
8908496ba1
|
@ -464,7 +464,7 @@ Coerces @racket[q] to an exact number, finds the numerator of the
|
|||
@mz-examples[(numerator 5) (numerator 34/8) (numerator 2.3)]}
|
||||
|
||||
|
||||
@defproc[(denominator [q rational?]) integer?]{
|
||||
@defproc[(denominator [q rational?]) (and/c integer? positive?)]{
|
||||
|
||||
Coerces @racket[q] to an exact number, finds the denominator of the
|
||||
number expressed in its simplest fractional form, and returns this
|
||||
|
|
Loading…
Reference in New Issue
Block a user