javascript - How to get Last digit of number -
how extract last(end) digit of number value using jquery. because have check last digit of number 0 or 5. how last digit after decimal point
for ex. var test = 2354.55
how 5 numeric value using jquery. tried substr work string not number format
like if use var test = "2354.55";
then work if use var test = 2354.55
not.
try one:
var test = 2354.55; var lastone = test.tostring().split('').pop(); alert(lastone);
Comments
Post a Comment