On Sun, Apr 23, 2017 at 06:13:42AM -0700, nacho wrote:
> Hello,
> This could sound like a dumb question, it may be.
> If I print:
> 8r3 * 8r3 I get 9.
> It seems that Pharo converts first to decimal and then performs the
> multiplication. How do I get the result in octal which should be 8r11?
#printStringRadix: base
(8r3 * 8r3) printStringRadix: 8 "-> 8r11"
for hex there's also
#hex
12 hex "-> 16rC"
Peter