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.  Hence :13(54) or decimal 69.

Either way, AIUI, the radix is only used to control the interpretation
of the literal.  The result is just a number, which doesn't "know"
that it was entered in base 13.  It's just a value, without any
inherent notion of a particular radix.

Or at least I thought that was the case, but in current Rakudo I
notice that :13(54) is a Num while 69 is an Int.

--
Mark J. Reed <markjr...@gmail.com>

Reply via email to