Skip to content

Commit 3a2570a

Browse files
committed
Document Rational.new normalizes ZDRs
1 parent f3f02d3 commit 3a2570a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/Type/Rational.pod6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ Please note that, since C<DeT> is by default equal to C<NuT>, in this case both
2424
=for code :skip-test
2525
method new(NuT:D: $numerator, DeT:D: $denominator --> Rational:D)
2626
27-
Creates a new rational object from numerator and denominator.
27+
Creates a new rational object from numerator and denominator, which it
28+
normalizes to the lowest terms. The C<$denominator> can be zero, in which
29+
case the numerator is normalized to C<-1>, C<0>, or C<1> depending on whether
30+
the original is negative, zero, or positive, respectively.
2831
2932
=head2 method Bool
3033

0 commit comments

Comments
 (0)