---
title: "Changing Precision"
canonical: "https://docs.magma-maths.org/v2.30-1/LocalFields/LocalGaloisRepresentations/precision.html"
source: "https://docs.magma-maths.org/v2.30-1/LocalFields/LocalGaloisRepresentations/precision.md"
part: "Local Fields"
chapter: "Local Galois Representations"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Local Fields", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/index-local-fields.md"}
  - {"title": "Local Galois Representations", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LocalGaloisRepresentations/index-local-galois-representations.md"}
prev: {"title": "Arithmetic", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LocalGaloisRepresentations/arithmetic.md"}
next: {"title": "Changing Fields", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/LocalGaloisRepresentations/fields.md"}
intrinsics:
  - {"name": "Precision", "signature": "Precision(A): GalRep -> RngIntElt"}
  - {"name": "ChangePrecision", "signature": "ChangePrecision(~A, Prec): GalRep, RngIntElt -> {}"}
  - {"name": "ChangePrecision", "signature": "ChangePrecision(A, Prec): GalRep, RngIntElt -> GalRep"}
examples:
  - "ex-8bdd36"
---

# Changing Precision

<a id="function-precision-galrep"></a>
## `Precision(A): GalRep -> RngIntElt`

Get $p$-adic precision of the base field of a Galois representation.

<a id="function-changeprecision-galrep-rngintelt-ref"></a>
## `ChangePrecision(~A, Prec): GalRep, RngIntElt -> {}`

Destructively change $p$-adic precision of the base field of a Galois representation.

<a id="function-changeprecision-galrep-rngintelt"></a>
## `ChangePrecision(A, Prec): GalRep, RngIntElt -> GalRep`

Change $p$-adic precision of the base field of a Galois representation.

<a id="example-ex-8bdd36"></a>
## `Example: Changing the Precision of a Representation (ex-8bdd36)`

```magma
> K:=pAdicField(5,20);
> R<x>:=PolynomialRing(K);
> A:=GaloisRepresentations(x^4-5)[3];
> A;
1-dim Galois representation (1,1,-1,-1) with G=C4, I=C4, conductor 5^1
   over Q5[20]
> Precision(A);
20
> ChangePrecision(~A,40);
> Precision(A);
40
> ChangePrecision(A,20);
1-dim Galois representation (1,1,-1,-1) with G=C4, I=C4, conductor 5^1
   over Q5[20]
```
