Macaulay2 » Documentation
Packages » ForeignFunctions » ForeignType » ForeignRealType » mpfrT
next | previous | forward | backward | up | index | toc

mpfrT -- MPFR multiple-precision floating-point type

Description

Macaulay2's native RR real number type wraps around mpfr_t from MPFR. This type (which is an instance of ForeignRealType) allows for conversion between Macaulay2 reals and MPFR reals without loss of precision.

i1 : mpfrT numeric(100, pi)

o1 = 3.141592653589793238462643383279

o1 : ForeignObject of type mpfr_t
i2 : value oo

o2 = 3.141592653589793238462643383279

o2 : RR (of precision 100)

Methods that use an object of class mpfrT:

  • expression(mpfrT) (missing documentation)
  • new mpfrT from RR
  • value(mpfrT)

For the programmer

The object mpfrT is a foreign real type, with ancestor classes ForeignObject < HashTable < Thing.


The source of this document is in ForeignFunctions.m2:1060:0.