fend icon indicating copy to clipboard operation
fend copied to clipboard

Provide a user command/option for grouped display of binary digits

Open krishnakumarg1984 opened this issue 1 year ago • 1 comments

Most of my work day I live in the terminal, and avoid reaching out to graphical programs wherever possible, and fend is helping me in this by providing all sort of useful conversions in addition to mathematical calculations. So, a big thank you for that.

As programmers who have to deal with bit shift patterns etc it might be helpful to display binary converted decimals as groups of 4 bits.

e.g.

> 65372 as binary
1111111101011100

The larger the (decimal) number, the more unreadable the long string of bits become. The result can be made more visually helpful for calculating bit mask hex patterns etc if the bits were spaced out & grouped as following:

1111 1111 0101 1100

Perhaps you could retain the current behaviour (for backward compatibility) and provide a new command, something like grouped binary or something like that?

krishnakumarg1984 avatar Jun 04 '23 13:06 krishnakumarg1984