I need to get a next value if the current value has decimal point(.1 to .9. not .0) with JavaScript.
Lets say:
var allRecords = 214;
var totalRecordSinglePage = 10;
var totalPages = (allRecords / totalRecordSinglePage)
Now the value of
totalPages = 21.4
But I want to convert 21.4 into 22.
So new value of
totalPages = 22
How can I do this in JavaScript?