File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ DRAFT: Synopsis 32: Setting Library - Numeric
19
19
20
20
Created: 19 Mar 2009 extracted from S29-functions.pod
21
21
22
- Last Modified: 29 May 2013
23
- Version: 17
22
+ Last Modified: 28 Dec 2013
23
+ Version: 18
24
24
25
25
The document is a draft.
26
26
@@ -205,6 +205,15 @@ Convert from C<$base> to radians.
205
205
206
206
Convert from radians to C<$base>.
207
207
208
+ =item narrow
209
+
210
+ multi method narrow ( Numeric $x: ) is export
211
+
212
+ Attempts to coerce the number to the narrowest type that can represent it accurately;
213
+ for instance, a C<Rat> with a denominator of 1 maybe be coerced to an C<Int> instead;
214
+ an integral C<Num> may likewise turn into an C<Int>. (Neither C<Num> nor C<Rat> convert
215
+ to each other, however.)
216
+
208
217
=back
209
218
210
219
You can’t perform that action at this time.
0 commit comments