public static MutableString /*!*/ Inspect(RubyContext /*!*/ context, BigDecimal /*!*/ self) { MutableString str = MutableString.CreateMutable(); str.AppendFormat("#<{0}:", context.GetClassOf(self).Name); RubyUtils.AppendFormatHexObjectId(str, RubyUtils.GetObjectId(context, self)); str.AppendFormat(",'{0}',", self.ToString(10)); str.AppendFormat("{0}({1})>", self.PrecisionDigits.ToString(), self.MaxPrecisionDigits.ToString()); return(str); }
public static MutableString /*!*/ AppendFormatHexObjectId(MutableString /*!*/ str, int objectId) { return(str.AppendFormat("0x{0:x7}", 2 * objectId)); }
public static MutableString/*!*/ AppendFormatHexObjectId(MutableString/*!*/ str, int objectId) { return str.AppendFormat("0x{0:x7}", 2 * objectId); }