Get bits from an integer

A post was split to a new topic: Combine and convert into an integer value