method

save_rounding_mode

v1_9_3_125 - Show latest stable - Class: BigDecimal
save_rounding_mode()
public

No documentation available.

static VALUE
BigDecimal_save_rounding_mode(VALUE self)
{
    unsigned short const round_mode = VpGetRoundMode();
    int state;
    VALUE ret = rb_protect(rb_yield, Qnil, &state);
    VpSetRoundMode(round_mode);
    if (state) rb_jump_tag(state);
    return ret;
}