add padding for outputs #9

Closed
opened 2024-05-12 16:59:11 +02:00 by PlexSheep · 1 comment
Owner

let's say we want to have the binary representation of 17. If we do numf 17 -b it will print out 10001.

This is correct, but maybe we would like to have a full byte. The request of this issue is adding a a flag -P that changes the output to 00010001.

This does not make as much sense for base64 or base32, but is useful at least for hex and binary.

base64 and base32 already add padding, but in the form of = characters at the end (at least for base64).

octal could pad up to the size of a full byte too.

let's say we want to have the binary representation of 17. If we do `numf 17 -b` it will print out `10001`. This is correct, but maybe we would like to have a full byte. The request of this issue is adding a a flag `-P` that changes the output to `00010001`. This does not make as much sense for base64 or base32, but is useful at least for hex and binary. base64 and base32 already add padding, but in the form of `=` characters at the end (at least for base64). octal could pad up to the size of a full byte too.
PlexSheep added the
Kind/Feature
Priority
Medium
Reviewed
Confirmed
labels 2024-05-12 16:59:11 +02:00
Author
Owner

see #11

see #11
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/numf#9
No description provided.