Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70754

When i'm using parseInt showing an error

$
0
0

@flycoders_sourav wrote:

Here is my code and error.

 onChangehomeloanloantenure(ev: any) {
   //alert(this.homeloanloantenure);
this.month= (this.homeloanloantenure*12);// here year convert to month 36
let payments=Math.pow(1+this.monthlyinstrest,this.month);

this.emiammout=(this.homeloanamount*payments*this.monthlyinstrest)/(payments-1);
this.calinstrest=this.emiammout*this.month;//here calculate the total instrest
this.instrestamount = this.calinstrest-this.homeloanamount;//here calculatet the instrest ammout
alert(this.emiammout)//EMI
this.totalpay=parseInt(this.homeloanamount)+parseInt(this.instrestamount);// here showing the total pay
}

Error:

please help me anyone.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>