protected override IDataItem TestFunc(IDataItem p1) { var u = p1.ToRational().Value; var w = u.Ceiling(); return(new BigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1) { var u = p1.ToRational().Value; var w = u.FloorLog10(); return(new Int32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1) { var u = p1.ToRational().Value; var w = u.ToDouble(); return(new DoubleDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1) { var u = p1.ToRational().Value; var w = u.ToInt64(); return(new Int64DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1) { var u = p1.ToRational().Value; var w = u.Invert(); return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToRational().Value; var v = p2.ToBigInt().Value; var w = u.Subtruct(v); return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToInt32().Value; var v = p2.ToRational().Value; var w = u.Add(v); return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToRational().Value; var v = p2.ToUInt32().Value; var w = u == v ? 1U : 0U; return(new UInt32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt32().Value; var v = p2.ToRational().Value; var w = Rational.Compare(u, v); return(new Int32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToRational().Value; var w = u - v; return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToRational().Value; var v = p2.ToBigInt().Value; var w = u.Equals(v) ? 1U : 0U; return(new UInt32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToBigInt().Value; var v = p2.ToRational().Value; var w = u.CompareTo(v); return(new Int32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToRational().Value; var v = (RoundingMode)p2.ToInt32().Value; var w = u.Round(v); return(new BigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, IDataItem p3) { var n = p1.ToRational().Value; var f = p2.ToXString().Value; var c = p3.ToNumberFormatInfo().Value; var r = n.ToString(f, c); return(new XStringDataItem(r)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, IDataItem p3) { var x = p1.ToRational().Value; var d = p2.ToInt32().Value; var m = (RoundingMode)p3.ToInt32().Value; var r = x.Round(d, m); return(new RationalDataItem(r)); }