Go to the first, previous, next, last section, table of contents.
- setround([mode])
-
:: Sets the rounding mode mode.
- return
-
integer
- mode
-
integer
-
When an argument mode is given, these functions
set the rounding mode for bigfloat operations to mode.
The return value is always the previous rounding mode regardless of
the existence of an argument.
The meanings of rounding modes are as follows
0
-
Round to nearest
1
-
Round toward 0
2
-
Round toward +infinity
3
-
Round toward -infinity
-
This is effective for computations in bigfloat.
Refer to
ctrl()
for turning on the `bigfloat flag.'
[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.