Next: , Previous: , Up: Rational Interval Functions   [Index]


5.3 Interval Conversion Functions

Inline Function: void mpri_get_q (mpq_t rop, const mpri_t op)

Convert op to a rational number, which is its centre.3

Function: double mpri_get_d (const mpri_t op)

Convert op to a double, this conversion is the composition of mpri_get_q and mpq_get_d.


Footnotes

(3)

An other conversion choice might be made in future releases of MPRIA; to explicitly obtain the centre of a rational interval, use mpri_mid instead.