1.0.0 • Published 12 months ago

simple-loan-calculator v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

贷款计算机

Install

yarn add loan-calculator

Usage

const instance = new LoanCalculator();
instance.init(100000, 0.037, 10);

Functions

方法名说明
init初始化
setTotal设置贷款总额,单位为元
setType还款类型,1-等额本息,2-等额本金
setYRate设置年利率
setYear设置贷款年限
getInterest获取利息
getMonthlyPay获取第 n 个月的月供
getLoan第 n 个月后剩余贷款
toString输出字符串
1.0.0

12 months ago