How to extract last(end) digit of the Number value using jquery. because i have to check the last digit of number is 0 or 5. so how to get last digit after decimal point
There is a JS function .charAt() you can use that to find the last digit
.charAt()
var num = 23.56 var str = num.toString(); var lastDigit = str.charAt(str.length-1); alert(lastDigit);