From 8dfab402281c86e6983d4663d2ec8edfdb0348c9 Mon Sep 17 00:00:00 2001 From: Hanno Rein Date: Sun, 24 Jan 2021 12:11:06 -0500 Subject: [PATCH] Direction of rounding added to arb.h documentation. Related to #357. --- doc/source/arb.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/source/arb.rst b/doc/source/arb.rst index ce45227c..c58bce9f 100644 --- a/doc/source/arb.rst +++ b/doc/source/arb.rst @@ -156,15 +156,18 @@ Assignment and rounding .. function:: void arb_set_round_fmpz(arb_t y, const fmpz_t x, slong prec) - Sets *y* to the value of *x*, rounded to *prec* bits. + Sets *y* to the value of *x*, rounded to *prec* bits in the direction + towards zero. .. function:: void arb_set_round_fmpz_2exp(arb_t y, const fmpz_t x, const fmpz_t e, slong prec) - Sets *y* to `x \cdot 2^e`, rounded to *prec* bits. + Sets *y* to `x \cdot 2^e`, rounded to *prec* bits in the direction + towards zero. .. function:: void arb_set_fmpq(arb_t y, const fmpq_t x, slong prec) - Sets *y* to the rational number *x*, rounded to *prec* bits. + Sets *y* to the rational number *x*, rounded to *prec* bits in the direction + towards zero. .. function:: int arb_set_str(arb_t res, const char * inp, slong prec)