Go to the first, previous, next, last section, table of contents.
- setbprec([n])
-
- setprec([n])
-
:: setbprec, setprec set the precision for bigfloat operations to n bits, n digits respectively.
- return
-
integer
- n
-
integer
-
When an argument n is given, these functions
set the precision for bigfloat operations to n bits or n digits.
The return value is always the previous precision regardless of
the existence of an argument.
-
Bigfloat operations are done by MPFR library.
-
This is effective for computations in bigfloat.
Refer to
ctrl()
for turning on the `bigfloat flag.'
-
There is no upper limit for precision digits.
It sets the precision to some digits around the specified precision.
Therefore, it is safe to specify a larger value.
[1] setprec();
15
[2] setprec(100);
15
[3] setprec(100);
99
[4] setbprec();
332
section ctrl
, section eval
, deval
.
Go to the first, previous, next, last section, table of contents.