Post Reply 
(42, all flavours) Integer Division - how?
12-12-2020, 10:36 AM
Post: #9
RE: (42, all flavours) Integer Division - how?
Too bad, Gjermund: on Free42,
4e33+6 DIV 4 should be 1e33+1, and your routine returns 1e33+2
But it does work on a 42S, where DOT uses 15 intermediate digits:
4e11+6 DIV 4 = 1e11 + 1
well, - for this particular example. But since it basically does Y/X - 1/2,
it fails for eg 7 DIV 3
Nevertheless, I learned something and it will be put to good use!
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: (42, all flavours) Integer Division - how? - Werner - 12-12-2020 10:36 AM



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