Skip to content

Commit 5da4951

Browse files
authored
Document Rational.Int
1 parent 1bc21a4 commit 5da4951

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/Type/Rational.pod6

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ method new(NuT:D: $numerator, DeT:D: $denominator --> Rational:D)
2121
2222
Creates a new rational object from numerator and denominator.
2323
24+
=head2 method Int
25+
26+
Defined as:
27+
28+
method Int(Rational:D: --> Int:D)
29+
30+
Coerces the invocant to L<Int> by truncating non-whole portion of the represented
31+
number, if any. If the L<denominator> is zero, will L<fail> with
32+
C<X::Numeric::DivideByZero>.
33+
2434
=head2 method isNaN
2535
2636
=for code :skip-test

0 commit comments

Comments
 (0)