Base conversion (including fractional parts)
|
01-27-2017, 05:02 AM
(This post was last modified: 01-27-2017 12:24 PM by Han.)
Post: #1
|
|||
|
|||
Base conversion (including fractional parts)
Started by this thread: http://hpmuseum.org/forum/thread-7585-post-67381.html
Code below is from the aforementioned thread. Code: EXPORT basecalc() Graph 3D | QPI | SolveSys |
|||
01-27-2017, 08:57 PM
Post: #2
|
|||
|
|||
RE: Base conversion (including fractional parts)
Radix, Very good program
an idea To start choosing the style 1: single [input / output] field (current) 2: two separate [input] / [output] fields, To view or compare conversion 3: an option with text (bases more known or useful) BINARY 2 OCTAL 8 DECIMAL 10 DUDECIMAL 12 HEXADECIMAL 16 VIGECIMAL 20 SEXAGECIMAL 60 https://en.wikipedia.org/wiki/Radix 4: separate in the case of hexadecimal numbers the outputs in pairs for easier reading FF 8F 0F 5: lowercase support ff8f0f |
|||
01-27-2017, 10:19 PM
Post: #3
|
|||
|
|||
RE: Base conversion (including fractional parts)
(01-27-2017 08:57 PM)compsystems Wrote: Radix, Very good program I was not able to find a program named Radix in the HP Prime software library. Do you have a link? Quote:an idea I will leave these ideas for others to implement. I usually hate doing UI design :-) Quote:5: lowercase support ff8f0f Lower case letters are actually used as digits for bases 37 through 62, so this would cause a conflict if we were to use lower case letters as alternatives to capital letters. I suppose that we could allow for lower case letters for digits only in the cases where the base is 36 or less. A simple test of the base, along with a conversion to upper case would be more than sufficient. But again, this is a "UI" option I'll leave to folks who are not as lazy as myself. :-) Graph 3D | QPI | SolveSys |
|||
01-28-2017, 03:57 AM
Post: #4
|
|||
|
|||
RE: Base conversion (including fractional parts)
Radix synonymous of base =)
Base conversion is a port of BASECAL (rpn)? As a suggestion to separate the hp-prime code in sub-functions PHP Code: %%HP: T(3)A(R)F(.); |
|||
01-28-2017, 03:40 PM
Post: #5
|
|||
|
|||
RE: Base conversion (including fractional parts)
(01-28-2017 03:57 AM)compsystems Wrote: Base conversion is a port of BASECAL (rpn)? No, I just wrote the program based on my own understanding of base conversions and what Joe was requesting. Graph 3D | QPI | SolveSys |
|||
01-29-2017, 12:29 PM
Post: #6
|
|||
|
|||
RE: Base conversion (including fractional parts)
What utility have the conversion of real numbers between different bases? I have only used conversion between integers.
About the program, please separate the UI from the functions, to create custom UI |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)