WOLFRAM|DEMONSTRATIONS PROJECT

Rounding p-adic Rationals

​
x
1
1
5
2
3
3
7
25
13
96
175
sign
+
-
p
2
3
5
7
10
11
13
17
19
23
29
31
n
0
rational x =
96
175
=
0
.54
857142
10
p-adic x =
857142
9.12
0
10
rnd(x) =
0
9.12
0
10
175 × rnd(x) =
0
1596.
0
10
Rational
p
-adic numbers share the same decimal notation and math as do repeating decimals. A vinculum (or overbar) is also allowed in
p
-adic number notation to indicate repeated digits. However, a nonzero vinculum must appear only on the leftmost digits, while normal repeating decimals use a vinculum only on the right. This Demonstration rounds
x
to only
n
repeating digits.