Formula

CommonFun.getBits

function CommonFun.getBits(arg)
  arg = arg or 0
  local bits = {}
  for i = 1, 32 do
    if arg >= CommonFun.data32[i] then
      bits[33 - i] = 1
      arg = arg - CommonFun.data32[i]
    else
      bits[33 - i] = 0
    end
  end
  return bits
end