HP 50g Binary Number Formatting
|
04-24-2022, 06:06 PM
(This post was last modified: 04-24-2022 08:22 PM by dlidstrom.)
Post: #10
|
|||
|
|||
RE: HP 50g Binary Number Formatting
Here’s an implementation that accepts a real and converts it into a string.
→BIN4: r → s Code:
This pattern matching approach trades some bytes for readability, which I tend to favour these days (when programming in other languages). I didn’t find a string join function that could avoid the last if statement. Unfortunately STREAM errors on a list with a single element. 2xHP48GX, HP 50g, two Retrotronik ram cards, DM42 /Daniel Lidström |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)