Post Reply 
(48G) GCD: Greatest Common Divisor
09-01-2018, 04:14 PM
Post: #11
RE: (48G) GCD: Greatest Common Divisor
Hello Albert,
you're absolutely right.
I wrote this when the most advanced HP was the 48GX, and so I never realized it didn't work for decimal integers.

Still, I can get it shorter:

Code:
\<<
  WHILE SWAP OVER DUP
  REPEAT MOD
  END 
  ROT DROP2
\>>

CHeers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (48G) GCD: Greatest Common Divisor - Werner - 09-01-2018 04:14 PM



User(s) browsing this thread: 1 Guest(s)