Skip to content

Commit

Permalink
clarify bigfloat precision docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jan 12, 2015
1 parent dfbcf50 commit f651efb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/manual/integers-and-floating-point-numbers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,14 @@ However, type promotion between the primitive types above and
julia> typeof(y)
BigInt (constructor with 10 methods)

The default precision (in number of bits of the significand) and rounding
mode of :class:`BigFloat` operations can be changed, and all further calculations
will take these changes in account:
The default precision (in number of bits of the significand) and
rounding mode of :class:`BigFloat` operations can be changed globally
by calling :func:`set_bigfloat_precision` and
:func:`set_rounding`, and all further calculations will take
these changes in account. Alternatively, the precision or the
rounding can be changed only within the execution of a particular
block of code by :func:`with_bigfloat_precision` or
:func:`with_rounding`:

.. doctest::

Expand Down

0 comments on commit f651efb

Please sign in to comment.