Skip to content

Commit 60ea17c

Browse files
committed
Improve example in type conversion
also undocument UNBASE, since it is internal. We should rather think about a better API for that.
1 parent d9293e9 commit 60ea17c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

doc/Type/Real.pod

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,10 @@ The final digit produced is always rounded.
7676
7777
say pi.base(10, 5); # 3.14159
7878
79-
To convert a string to a number use the C<:16($number)> notation where 16 is
79+
To convert a string to a number use the C<:16($string)> notation where 16 is
8080
the base:
8181
8282
say :16("FF") # 255
8383
say :23("FF") # 360
8484
85-
Converting to a dynamic base requires the Rakudo internal function
86-
C<UNBASE()>:
87-
88-
my $base = 23;
89-
say UNBASE($base, "FF") # 360
90-
9185
=end pod

0 commit comments

Comments
 (0)