Skip to content

Commit 8193f27

Browse files
committed
mention narrowing complex and native types
1 parent ae7cf35 commit 8193f27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S32-setting-library/Numeric.pod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ Convert from radians to C<$base>.
212212
Attempts to coerce the number to the narrowest type that can represent it accurately;
213213
for instance, a C<Rat> with a denominator of 1 maybe be coerced to an C<Int> instead;
214214
an integral C<Num> may likewise turn into an C<Int>. (Neither C<Num> nor C<Rat> convert
215-
to each other, however.)
215+
to each other, however.) C<Complex> with a 0 imaginary part may narrow to a C<Real> type.
216+
Conjecturally, wide native types could narrow to narrower native types.
216217

217218
=back
218219

0 commit comments

Comments
 (0)