Diameter from Circumference
Compute diameter from circumference in your browser: 2 gives 0.63662.
What this Diameter from Circumference does
Enter 2 circumference and the page evaluates x/pi, printing 0.63662 — the expression is fixed, only the value is yours.
The diameter is the circumference over pi, by definition. The page evaluates the expression for the value typed and prints six decimal places with trailing zeros trimmed.
Neighbour table
| circumference | diameter |
|---|---|
| 1 | 0.31831 |
| 2 | 0.63662 |
| 5 | 1.591549 |
| 10 | 3.183099 |
Rounding
Six decimal places, trailing zeros trimmed: 2 circumference prints as 0.63662 diameter. The table above is computed from the same expression, not typed in.
What it refuses
A blank box, anything that is not a number, and a negative value under a square root. A refusal names the fix instead of guessing.
How to use it
Diameter from Circumference: paste the circumference into the box above and press Run to get the diameter below.
Worked example
Input:
2
Output:
0.63662
Why it runs in your browser
The formula is evaluated on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads circumference and returns diameter; reloading the page discards both.
Enter 2 circumference and the page evaluates x/pi, printing 0.63662 diameter.
The diameter is the circumference over pi, by definition. The expression is fixed — only the value is yours.
The page runs entirely in your browser: nothing is posted, stored or timed.
One expression, stated once
The diameter is the circumference over pi, by definition. Results print to six decimal places with trailing zeros trimmed.
The neighbour table on the page is computed from the same expression, not typed in.
- Expression: x/pi
- Six decimal places, trailing zeros trimmed
- Same expression for every visitor
How to use this calculator
Paste the circumference and press Run. The diameter appears below with the expression that produced it.
A blank box or a non-number is refused with the fix named.
What to Expect
Best for
- Evaluating x/pi for one value
- Checking homework against a stated formula
Not ideal for
- Solving for the input — the page evaluates forward only
- Replacing a full graphing calculator
What this tool keeps
- The fixed expression x/pi — the page evaluates it for the value typed
- The value unchanged: the expression is pure, so the same input always prints 0.63662
What may need cleanup
- Six places can hide a seventh that matters for machining tolerances
- A pasted value with a unit suffix is refused, not stripped
Common errors
- Typing the circumference where the value goes
- Reading the expression as editable — only the value is yours
Example use cases
- Evaluating x/pi for 2 circumference
- Double-checking a result quoted without its expression
Sample input
Enter 2 (2 circumference gives 0.63662 diameter).
Sample output
0.63662 diameter, at six decimal places.
Who this is for
- Anyone evaluating x/pi once
- Anyone checking a result against its formula
Frequently asked questions
What does the expression mean?
The diameter is the circumference over pi, by definition. For 2 circumference the page prints 0.63662 diameter.
Can the expression be edited?
No. The expression is fixed on the page — only the circumference is yours, so two visitors typing 2 always read the same answer.
What input is refused?
A blank box, anything that is not a number, and a negative value under a square root. A refusal names the fix instead of guessing.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.