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
For Ex.
var test = 2354.55
Now how to get 5 from this numeric value using jquery.
i tried substr but that is only work for string not for Number format
Like if i am use var test = "2354.55";
then it will work but if i use var test = 2354.55
then it will not.
you can just convert to string