On Fri, Jul 23, 2010 at 07:45, Mark J. Reed wrote:
> No, 42/13 is 42 over 13, which is 3 + 3/13. Let's not confuse
> fractions and bases, please.
>
ha! yet another case of crossed wires too early in the morning. sorry
for the confusion, i've been making similar apologies all day. too
bad i don'
No, 42/13 is 42 over 13, which is 3 + 3/13. Let's not confuse
fractions and bases, please.
:13(42) means 54. That much is straightforward.
:13(6*9) is less obvious, but seems to mean (1) multiply 6*9, (2)
convert the resulting number to a (decimal) string; (3) interpret that
string in base 13.
On Fri, Jul 23, 2010 at 05:17, Jan Ingvoldstad wrote:
> Hi.
>
> I was fiddling about with a small example of how nice radix adverbials are
> for conversion:
>
> my $x = 6*9;
> say :13($x);
>
> rakudo: 69
>
> ($x = 54 in base 10, but 54 in base 13 is 69 in base 10.)
>
> Strangely enough, I cannot f
Hi.
I was fiddling about with a small example of how nice radix adverbials are
for conversion:
my $x = 6*9;
say :13($x);
rakudo: 69
($x = 54 in base 10, but 54 in base 13 is 69 in base 10.)
Strangely enough, I cannot find a way — in the spec — of both treating a
number as something in base 13