Skip to content

Commit 7f8ac85

Browse files
authored
1 parent 66e23ab commit 7f8ac85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Type/Str.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,11 @@ cannot parse the string as a number.
13921392
say val("42.0").^name; # OUTPUT: «RatStr␤»
13931393
say val("42+0i").^name; # OUTPUT: «ComplexStr␤»
13941394
1395+
While C<Nl> and C<No> characters can be used as numeric literals
1396+
in the language, the will not be converted to a number by C<val>, by design.
1397+
See L«unival|/routine/unival» if you need to convert such characters to
1398+
C<Numeric>.
1399+
13951400
=end pod
13961401

13971402
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)