set missing rnd default in rpn_default

This commit is contained in:
Louis Rubet 2022-02-20 23:41:16 +01:00
parent 12b83f69af
commit b90c382b24
2 changed files with 4 additions and 1 deletions

View file

@ -658,4 +658,7 @@ void program::apply_default() {
number::s_mode = DEFAULT_MODE;
number::s_digits = DEFAULT_DECIMAL_DIGITS;
mpreal::set_default_prec(MPFR_DEFAULT_PREC_BITS);
static mp_rnd_t def_rnd = mpreal::get_default_rnd();
mpreal::set_default_rnd(def_rnd);
}

View file

@ -1,6 +1,6 @@
# TRIGONOMETRY
`del default 6 fix`
`del default 6 fix 128 prec`
## pi