Talk:P-Adic numbers, basic

From Rosetta Code
Revision as of 07:18, 3 March 2021 by rosettacode>Adlai (→‎Clarification Regarding Base: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Clarification Regarding Base

The examples use all kinds of different bases, including one example that uses base 10, which is not prime, resulting in an l-adic ring instead of a p-adic field! The specific example shown there happens to work, because the denominator in the fractions used is prime relative to the base, although the task description doesn't give any guidelines. I think a reasonable default guideline could be to copy the examples that use a p-adic field from the FreeBasic solution, which anyway appears to be the one that most other solutions translated.