protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, IDataItem p3)
        {
            var n = p1.ToBigInt().Value;
            var f = p2.ToXString().Value;
            var c = p3.ToNumberFormatInfo().Value;
            var r = n.ToString(f, c);

            return(new XStringDataItem(r));
        }
示例#2
0
        protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, IDataItem p3)
        {
            var s = p1.ToXString().Value;
            var f = p2.ToInt32().Value;
            var n = p3.ToNumberFormatInfo().Value;
            var r = UBigInt.Parse(s, (NumberStyles)f, n);

            return(new UBigIntDataItem(r));
        }
示例#3
0
        protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, IDataItem p3, out IDataItem r2)
        {
            var     s = p1.ToXString().Value;
            var     f = p2.ToInt32().Value;
            var     n = p3.ToNumberFormatInfo().Value;
            UBigInt v;
            var     r = UBigInt.TryParse(s, (NumberStyles)(int)f, n, out v);

            r2 = new UBigIntDataItem(v);
            return(new UInt32DataItem(r ? 1U : 0U));
        }