HP Prime: Base 10 - Base 12 Conversions - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: HP Prime: Base 10 - Base 12 Conversions (/thread-7688.html) |
HP Prime: Base 10 - Base 12 Conversions - Eddie W. Shore - 01-31-2017 04:20 AM Conventions: X = 10 E = 11 (notation by William A. Dwiggins) HP Prime Program DEC2DUO Enter the integer as a number. Code: EXPORT DEC2DUO(n) Example: Convert 12501 from Base 10 to Base 12 DEC2DUO(12501) returns “7299” HP Prime DUO2DEC Enter the integer as a string, use X for 10 and E for 11 Code: EXPORT DUO2DEC(str1) Example: Convert X2X3 from base 12 go base 10 DUO2DEC(“X2X3”) returns 17691 |