[thelist] JScript v VBScript

Scott Dexter sgd at ti3.com
Tue Jan 29 15:14:01 CST 2002


>
> VBScript:
> MthFullCredit=int((Prin*MonthRate)/(1-(1+MonthRate)^(-1*NumPay
> ments))*100)/1
> 00
>
> JScript:
> MthFullCredit=Math.ceil((Prin*MonthRate)/(1-(1+MonthRate)^(-1*
> NumPayments))*
> 100)/100;
>

in VBScript, Int() rounds, so you don't always get the ceiling, like
you're specifying in the jscript version....

sgd



More information about the thelist mailing list