supports specifying bit size instead of magnitude