예제 #1
0
        public double toUSD(double v, DateTime d)
        {
            string cry = getSettleCurrency();

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

            if (cry == "USD")
            {
                return(dollar);
            }
            else
            {
                return(dollar / CHelp.toUSD(cry, d));
            }
        }