Description
Convert a supplied bit quantity to nats and hartleys.
Information quantities depend on the logarithm base, event model and symbol accounting. Bits, nats and hartleys are logarithmic units, while source symbols, channel symbols and header bits describe different counting bases. A local mass residual or expansion factor does not estimate entropy, independence or channel capacity from data.
Convert a supplied bit quantity to nats and hartleys.
When to use this tool
Use Information Unit One Bit Reference when you already have bits and need to convert a supplied bit quantity to nats and hartleys.
How to use the tool and how it works
- Enter bits. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read nats, hartleys. Use the output convention below.
Return bits*ln(2) as nats and bits*ln(2)*log10(e) as hartleys.1
Changing the logarithm base changes the information unit. This tool converts a supplied quantity between base-2, natural and base-10 scales without estimating information from observations.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| bits | Signed quantity on a base-2 information scale; converted as a unit quantity, not calculated entropy. | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| nats | bits*ln(2), using natural-logarithm units. | Required. Finite number. |
| hartleys | bits*log10(2), using base-10 units. | Required. Finite number. |
{
"input": {
"bits": 1
},
"output": {
"nats": 0.6931471805599453,
"hartleys": 0.3010299956639812
}
} Limitations and assumptions
- Signed inputs are allowed; this converts logarithmic units without computing entropy, information content, a code length or a valid probability model.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Evaluate the full probability model, code and payload/header format when studying information or efficiency. Keep symbol and logarithm bases explicit; a unit conversion or one joint-mass reference term is only a local calculation.
References
-
Calculation and input contract: information/information-unit-one-bit-reference — tool.io
-
A Mathematical Theory of Communication (1948) — Claude E. Shannon
Similar or alternative tools
- Source Channel Symbol Rate
Calculate channel-symbol rate from a supplied source rate and expansion factor.
- Coding Overhead Fixed Header Share
Calculate fixed-header share of supplied payload-plus-header bits.