public static Number ToBase(double value, int resultBase) { var baseRep = bc.ToBase(value, resultBase); var sRep = fc.ToSingle((float)value); var dRep = fc.ToDouble((double)value); return(new Number(baseRep, sRep, dRep)); }