예제 #1
0
 public long GetCost(int cost)
 {
     return(((long)(Math.Pow((double)cost / ChangeSpanBase, Power) * Precision)).Mul(Weight).Div(WeightBase)
            .Add(Precision.Mul(Numerator).Div(Denominator).Mul(cost)));
 }
예제 #2
0
 public long GetCost(int cost)
 {
     return(Precision.Mul(ConstantValue));
 }
예제 #3
0
 public long GetCost(int cost)
 {
     return(Precision.Mul(cost).Mul(Numerator).Div(Denominator).Add(ConstantValue));
 }