public static TableSchema Percentage(this IMslScript script, DataColumn dividend, DataColumn divisor, DataColumn into) { if (into == null) { TempTable.Create(); into = TempTable["value"]; } return(script.CrossSeries(dividend, divisor, into, (_dividend, _divisor) => _dividend / _divisor * 100)); }
public static TableSchema PriceEarningRatio(this IMslScript script, DataColumn price, DataColumn eps, DataColumn into) { if (into == null) { TempTable.Create(); into = TempTable["value"]; } return(script.CrossSeries(price, eps, into, (_price, _eps) => _price / _eps)); }