Post Reply 
(15C) another approach to decimal <-> binary conversion
12-01-2017, 08:48 AM
Post: #3
RE: (15C) another approach to decimal <-> binary conversion
(11-30-2017 07:50 PM)Dieter Wrote:  And finally... what about a version that returns a result in the correct order ?-)

Dieter
Thanks for your comments, especially about label use; I clearly can learn something there (and in many other areas).

I do have the algorithm for computing the result in the right order on paper (maybe not the most efficient one, using the fact that 10^int(2log(n)) puts the "1 in the right place") but real life is interfering right now, so I'll have to code (and improve) that at a later time.

I am sure there are more efficient algorithms, and also programs for "base n to base m" conversions. So if this was a real world problem, I would do some literature search first. But the learning experience is fun Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (15C) another approach to decimal <-> binary conversion - jthole - 12-01-2017 08:48 AM



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