Skip to content

Commit 06707c8

Browse files
authored
Better example of base() rounding
1 parent 0ea8e00 commit 06707c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/Real.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ with a minimum of 6.
7474
7575
The final digit produced is always rounded.
7676
77-
say pi.base(10, 5); # 3.14159
77+
say pi.base(10, 3); # 3.142
7878
7979
To convert a string to a number use the C<:16($string)> notation where 16 is
8080
the base:

0 commit comments

Comments
 (0)