Method: BigDecimal.interpret_loosely
- Defined in:
- bigdecimal.c
.interpret_loosely(str) ⇒ Object
3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 |
# File 'bigdecimal.c', line 3761
static VALUE
BigDecimal_s_interpret_loosely(VALUE klass, VALUE str)
{
char const *c_str = StringValueCStr(str);
Real *vp = VpNewRbClass(0, c_str, klass, false, true);
if (!vp)
return Qnil;
else
return VpCheckGetValue(vp);
}
|