Fix format/convert ops #6
Conversation
ig-ra
commented
Apr 8, 2025
- distinguish between arithmetical operations on numbers (add/sub/mul/divide/shift etc) and format ops (change base, decimal/hex/binary etc).
- fix handling of format ops
- distinguish between - arithmetic op, which should return new number and - format op, which returns a string, representing the same number - add those ops for hydra and smartrep
|
hey @knu , could u plz take a look? |
knu
left a comment
There was a problem hiding this comment.
Looks good. Let me try this locally.
|
one more question - is there a need for '#' operator? |
|
Ah, |
I see. Interesting.. I suggest to open a new PR/enhancement ticket to discuss whether base-36 style encoding conversion is something that people would like to have. For me the major value of this lib is to inc/dec ops and conversion back/forth to hex/binary/dec, but if there will be a ticket/votes then we could know whether this is something that worth (re)implementing. If you think that |
|