How this calculation works
The boundary between 100 and 1,000 is about 316.23 on a log scale. Ordinary rounding to hundreds uses a different distance.
Round log₁₀(x) to the nearest integer, then raise ten to that exponentA worked example
720 lies above the geometric midpoint √(100 × 1000), so its nearest power is 1,000.
Good to know
This uses logarithmic distance. It is suitable for scale comparisons.
Reference: OpenStax Prealgebra (opens in a new tab) ↗
Compare distances on a logarithmic scale
For the input 720, log₁₀(720) is approximately 2.857. Rounding this exponent gives 3, and raising 10 to that exponent gives 1,000. The calculation selects the closest integer exponent. The distance from 720 to 1,000 is therefore compared through a ratio, rather than by subtracting ordinary numerical distances.
Between 100 and 1,000, the equal-log-distance boundary is their geometric mean, √(100 × 1,000) ≈ 316.228. At that boundary the ratio upward to 1,000 equals the ratio downward to 100, both about 3.162. Since 720 exceeds this boundary, it belongs to the 1,000 order under this convention.
State the rounding convention when reporting a scale
Another common description uses the exponent in scientific notation, taking the floor of log₁₀(x). That convention would describe 720 as lying in the hundreds decade because 720 = 7.2 × 10². This calculator instead rounds the logarithm, as its title and formula specify. Be explicit about the convention when comparing results from another source.
The Floor and ceiling of a number calculator helps inspect the neighbouring integer exponents after a logarithm has been evaluated. Inputs must be positive because a real logarithm of zero or a negative number is undefined. Values below one can have negative exponents. For example, 0.0072 is nearest to 10⁻² = 0.01 by the same ratio-based rule.
A few questions, answered
What happens at a geometric midpoint?
The implementation rounds a logarithmic half-integer toward the larger exponent. Floating-point representation can affect inputs entered as rounded approximations to an exact midpoint.
Does a power of ten change?
No. An exact power such as 100 has an integer logarithm and is returned as the nearest power.