Macaulay2 » Documentation
Packages » Padic » PadicNumber » numeric(ZZ,PadicNumber)
next | previous | forward | backward | up | index | toc

numeric(ZZ,PadicNumber) -- convert a p-adic number to a real number

Description

Converts a $p$-adic number to a floating-point real number by first lifting to QQ.

i1 : numeric QQ_7 5

o1 = 5

o1 : RR (of precision 53)
i2 : numeric(100, QQ_7 5)

o2 = 5

o2 : RR (of precision 100)

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Padic.m2:1083:0.