Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

BIN to HEX conversion only works properly if length of BIN is a multiple of 4 #11

@mh-

Description

@mh-

If the number of bits is not a multiple of 4, strange results occur, because the conversion does not extend the start of the BIN value with zeroes, like most other conversion tools would.
See

int binCOUNT=(bin2hexBUFFlen-1);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions