Post Reply 
How to change bases?
12-01-2019, 08:43 AM
Post: #21
RE: How to change bases?
(11-30-2019 02:41 PM)rprosperi Wrote:  I usually find the stories behind such discoveries (think the 42S hex table at Taco Bell) at least as interesting as the actual result itself.

Would it be possible to share the 42S story? It's the first time I see 42S and Taco Bell in the same sentence...
Find all posts by this user
Quote this message in a reply
12-01-2019, 02:42 PM (This post was last modified: 12-01-2019 02:46 PM by rprosperi.)
Post: #22
RE: How to change bases?
(12-01-2019 08:43 AM)Didier Lachieze Wrote:  
(11-30-2019 02:41 PM)rprosperi Wrote:  I usually find the stories behind such discoveries (think the 42S hex table at Taco Bell) at least as interesting as the actual result itself.

Would it be possible to share the 42S story? It's the first time I see 42S and Taco Bell in the same sentence...

Full disclosure, it was actually a Jack in the Box, I just used Taco Bell as a metaphor... Smile

Here's a recent post with a quick summary (prior versions detailed how good the cheeseburger was):

https://www.hpmuseum.org/forum/thread-14...#pid124274

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
12-02-2019, 06:16 AM (This post was last modified: 12-02-2019 06:18 AM by Tim Wessman.)
Post: #23
RE: How to change bases?
So just looked at the code and found something interesting that was put in at r9649... looks like all of this got lost somewhere and missed documenting/testing. Most likely you will wipe all memory, fry your CPU, and potentially explode, so don't blame me. Also, i suspect that will be removed at some point as they really dont belong in "CONVERT" and should be in a different location.

Code:
    if (wcsicmp2(Params[1]->String()->string(), L"base")==0 && NbParams==3) return BaseConvertion(Params[0], Params[2]);
//    if (wcsicmp2(Params[1]->String()->string(), L"array")==0) return ArrayConvertion(Params[0], Params+2, NbParams-2); // Use ListToMat!
    if (wcsicmp2(Params[1]->String()->string(), L"list")==0) return listConvertion(Params[0], false);
    if (wcsicmp2(Params[1]->String()->string(), L"listlist")==0) return listConvertion(Params[0], true);

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
12-03-2019, 02:05 AM
Post: #24
RE: How to change bases?
here an alternative to converge base numbers, from base 2 to base 31 and also numbers of decimal places





the program link in the video description
Find all posts by this user
Quote this message in a reply
Post Reply 




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