🧮 Radix Digit Count
Compute the minimum digits needed to represent N states in a chosen radix (e.g. 256 states need 2 hex digits).
📐 計算公式與說明
以 base 進製表示 N 所需位數 = ⌈log(N) ÷ log(base)⌉;實際容量 = base^位數;可表字節數 = ⌊容量 ÷ 8⌋。校驗:N、base、bytes 為有效正數,base≥2。
例如 256 種狀態在 16 進位制下需 2 位。