Skip to contents

eg 18 = 2 + 16 decomposes to 1, 4

Usage

decomposeStatus2Bit(status)

Arguments

status

an integer that represents the sum of powers of 2

Value

a string of powers of 2 representing the bit, eg 1,4