How to round up decimal value
How to round up the given value.
rate: 1.3599999999999999
should be the result:
= 1.36
code
- var sales_interestrate = parseInt($('#sales_interestrate').val());
- var sales_terms = $('#sales_terms').val();
- $('#sales_interestrate').val((sales_terms * 0.02 )+1);