HP Forums
How to change bases? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: How to change bases? (/thread-12755.html)

Pages: 1 2


RE: How to change bases? - Didier Lachieze - 12-01-2019 08:43 AM

(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...


RE: How to change bases? - rprosperi - 12-01-2019 02:42 PM

(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-14056-post-124274.html#pid124274


RE: How to change bases? - Tim Wessman - 12-02-2019 06:16 AM

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);



RE: How to change bases? - YEDERF - 12-03-2019 02:05 AM

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