UNPKG

solid-credit

Version:

Solid Credit is an advanced tool designed for the precise generation of loan amortization tables. This library encompasses a variety of loan structures, including the French, German, and American systems, in addition to offering options for grace periods.

8 lines (6 loc) 252 B
import { IconvertToDecimal } from "./interface/IconvertToDecimal.interface"; export class convertToDecimal implements IconvertToDecimal { getdecimalize(num: number): number { return Number( (num / Math.pow(10, 2)).toFixed(2) ); } }