You want to take logarithms in several bases.
#!/usr/bin/env raku
use v6;
put log10 100; #=> 2
put 250.log10; #=> 2.397940008672037
put log eĀ³; #=> 3
put log 6561, 9; #=> 4
put 1024.log(2); #=> 10
# vim: expandtab shiftwidth=4 ft=perl6
See Also
01strings
Perl 6 Cookbook: Introduction to Strings
01strings
Converting between characters and numbers.
01strings
Reversing a String by Word or Character
01strings
Trimming whitespace from both ends of a string
04arrays
Specifying a list in your program
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.