Canonical: https://toolipedia.app/digits-of-constants-to-n-places

# Digits of Constants to N Places

Print pi, e, the golden ratio, the natural logarithm of 2 or the square root of any number to thousands of decimal places, or look up just the nth digit.

Breadcrumbs: Toolipedia > Online calculators > Maths and school calculators > Digits of Constants to N Places

## About Digits of Constants to N Places

Choose pi, e, the golden ratio, the natural logarithm of 2 or the square root of any positive number and get as many as 20,000 decimal digits. The values are computed exactly with big-integer arithmetic: Machin's formula for pi, the factorial series for e, an integer square root for phi and square roots, and an arctanh series for ln 2. Digits are truncated, not rounded. You can group them in fives or tens, copy or download the result, or ask for a single digit by position, such as the 100th digit of pi, which is 9.

## How to use Digits of Constants to N Places
1. Select the constant, or the square root and the number under it, and choose how many decimals you want.
2. Optionally enter a position to see just that digit and the digits around it, and choose the grouping.
3. Copy or download the digits, or read the digit lookup in the results.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.

## Also known as
- digits of constants to n places
- pi to 1000 digits
- digits of e
- golden ratio digits
- square root of 2 to 1000 digits
- nth digit of pi

## Frequently asked questions

### Are the digits rounded or truncated?

They are truncated at the last digit shown, which is the usual convention for tables of constants. Ask for one more digit if you need to round, since rounding depends on the digit that follows.

### How are so many digits computed in a browser?

The page uses integer arithmetic on very large numbers with extra guard digits, instead of floating point, which only holds about 16 digits. 20,000 digits of pi take a fraction of a second.

### Can it compute the square root of a fraction or decimal?

Yes. Type a whole number, a decimal such as 0.5 or a fraction such as 2/3 under the root. A perfect square gives an exact result with trailing zeros, and the page notes it.

### Is Digits of Constants to N Places free?

Yes. Digits of Constants to N Places on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

### Can I put Digits of Constants to N Places on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

## Related tools

More free tools that go well with Digits of Constants to N Places:
- [Root calculator](https://toolipedia.app/root-calculator)
- [Golden ratio calculator](https://toolipedia.app/golden-ratio-calculator)
- [Logarithm calculator](https://toolipedia.app/logarithm-calculator)
- [Digit Calculator](https://toolipedia.app/digit-calculator)
- [Scientific Constants Table](https://toolipedia.app/scientific-constants-table)
