Arbitrary-precision integers (included)

From Fōrmulæ wiki
Revision as of 19:31, 22 March 2019 by Admin (Talk | contribs) (Description (from Rosetta Code))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page is the answer to the task Arbitrary-precision integers (included) in the Rosetta Code.

Description (from Rosetta Code)

Using the in-built capabilities of your language, calculate the integer value of:

  • Confirm that the first and last twenty digits of the answer are: 62060698786608744707...92256259918212890625
  • Find and show the number of decimal digits in the answer.

Calculation

Calculation the integer value of:

It is converted to string in order to perform the other requirements.

ArbitraryPrecisionInteger1.png

First and last digits

Confirmation that the first and last twenty digits of the answer are: 62060698786608744707...92256259918212890625

ArbitraryPrecisionInteger2.png

Number of decimal digits

Finding and showing the number of decimal digits in the answer.

ArbitraryPrecisionInteger3.png