Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added usage statements for C<lsb>, C<msb>, and C<unival>
  • Loading branch information
dha committed Oct 3, 2015
1 parent 3bed9cc commit 2d7c132
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/Type/Int.pod
Expand Up @@ -71,9 +71,16 @@ Returns C<False> if this C<Int> is known not to be a prime.
=head2 routine lsb
Defined as:
multi method lsb(Int:D:)
multi sub lsb(Int:D)
Usage:
lsb INTEGER
INTEGER.lsb
Returns L<Nil|/type/Nil> if the number is 0. Otherwise returns the zero-based
index from the right of the first 1 in the binary representation of the
number.
Expand All @@ -86,9 +93,16 @@ number.
=head2 routine msb
Defined as:
multi method msb(Int:D:)
multi sub msb(Int:D)
Usage:
msb INTEGER
INTEGER.msb
Returns L<Nil|/type/Nil> if the number is 0. Otherwise returns the zero-based
index from the left of the first 1 in the binary representation of the
number.
Expand All @@ -101,9 +115,16 @@ number.
=head2 routine unival
Defined as:
multi sub unival(Int:D) returns Numeric
multi method unival(Int:D:) returns Numeric
Usage:
unival INTEGER
INTEGER.unival
Returns the number represented by the Unicode codepoint with the given integer
number, or L<NaN> if it does not represent a number.
Expand Down

0 comments on commit 2d7c132

Please sign in to comment.