Skip to content

Commit

Permalink
mention narrowing complex and native types
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Dec 29, 2013
1 parent ae7cf35 commit 8193f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-setting-library/Numeric.pod
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ Convert from radians to C<$base>.
Attempts to coerce the number to the narrowest type that can represent it accurately;
for instance, a C<Rat> with a denominator of 1 maybe be coerced to an C<Int> instead;
an integral C<Num> may likewise turn into an C<Int>. (Neither C<Num> nor C<Rat> convert
to each other, however.)
to each other, however.) C<Complex> with a 0 imaginary part may narrow to a C<Real> type.
Conjecturally, wide native types could narrow to narrower native types.

=back

Expand Down

0 comments on commit 8193f27

Please sign in to comment.