public double toUSD(double v, DateTime d) { string cry = getSettleCurrency(); if (cry == "USD") { return(v); } else { return(v * CHelp.toUSD(cry, d)); } }
public double toCuy(double dollar, DateTime d) { string cry = getSettleCurrency(); if (cry == "USD") { return(dollar); } else { return(dollar / CHelp.toUSD(cry, d)); } }