Skip to content

Support hex & binary numbers #78

@skx

Description

@skx

My (embedded) usage is more annoying than it has to be because we can't operate upon bits easily.

These should both just work:

(print "%d" 0xff)
(print "%d" 0b01010101)

Making the change is trivial, and would benefit others.

Not sure if I need to port my bit-manipulation operations, but since it's all tied to the hardware it's probably not so worthwhile.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions