File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,16 @@ Returns C<False> if this C<Int> is known not to be a prime.
71
71
72
72
= head2 routine lsb
73
73
74
+ Defined as:
75
+
74
76
multi method lsb(Int:D:)
75
77
multi sub lsb(Int:D)
76
78
79
+ Usage:
80
+
81
+ lsb INTEGER
82
+ INTEGER.lsb
83
+
77
84
Returns L < Nil|/type/Nil > if the number is 0. Otherwise returns the zero-based
78
85
index from the right of the first 1 in the binary representation of the
79
86
number.
@@ -86,9 +93,16 @@ number.
86
93
87
94
= head2 routine msb
88
95
96
+ Defined as:
97
+
89
98
multi method msb(Int:D:)
90
99
multi sub msb(Int:D)
91
100
101
+ Usage:
102
+
103
+ msb INTEGER
104
+ INTEGER.msb
105
+
92
106
Returns L < Nil|/type/Nil > if the number is 0. Otherwise returns the zero-based
93
107
index from the left of the first 1 in the binary representation of the
94
108
number.
@@ -101,9 +115,16 @@ number.
101
115
102
116
= head2 routine unival
103
117
118
+ Defined as:
119
+
104
120
multi sub unival(Int:D) returns Numeric
105
121
multi method unival(Int:D:) returns Numeric
106
122
123
+ Usage:
124
+
125
+ unival INTEGER
126
+ INTEGER.unival
127
+
107
128
Returns the number represented by the Unicode codepoint with the given integer
108
129
number, or L < NaN > if it does not represent a number.
109
130
You can’t perform that action at this time.
0 commit comments