April 23, 2017
1:30 p.m.
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
Thanks!
----- Nacho Smalltalker apprentice. Buenos Aires, Argentina. -- View this message in context: http://forum.world.st/Octal-multiplication-tp4943364.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.