Module: Kernel
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#BigDecimal(*args) ⇒ Object
Global function.
Instance Method Details
#BigDecimal(*args) ⇒ Object
Global function
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 |
# File 'bigdecimal.c', line 1667 static VALUE BigDecimal_global_new(int argc, VALUE *argv, VALUE self) { ENTER(5); Real *pv; S_LONG mf; VALUE nFig; VALUE iniValue; if(rb_scan_args(argc,argv,"11",&iniValue,&nFig)==1) { mf = 0; } else { mf = GetPositiveInt(nFig); } SafeStringValue(iniValue); GUARD_OBJ(pv,VpCreateRbObject(mf, RSTRING_PTR(iniValue))); return ToValue(pv); } |