Jquery rounded up and down applies to paging queries, and jquery rounded up
When ajax is used for paging query, the entire function is used for the number of pages.
<Script language = "javascript"> var uu = Math. floor (5.36) // The rounded down result is 5 var uu = Math. floor (5.88) // The result is 5 Math. ceil (5.33) // rounded up. The result is 6 Math. round (5.55) // The result is 6 math. round (5.22) // The result is 5 </script>
What is the meaning of rounded up and rounded down?
If the number of the entire function is rounded up or down, the number after the decimal point is not zero,
If you give it an integer, it returns the integer itself.
Perform the following operations on the number of decimal places:
4.9
4 is obtained by calling the entire function down.
5 is obtained by calling the rounded up function.
If you want to help, please remember to adopt it. O (∩ _ ∩) O thank you.
Round down:
An integer greater than the calculated result is obtained when the calculated result is not an integer. An integer smaller than the calculated result is obtained when the calculated result is not an integer. returns an integer when the calculated result is an integer.
-2 & lt;-1.9