Raised This Month: $ Target: $400
 0% 

Solved Nonsense Divide


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-21-2021 , 09:42   Re: Nonsense Divide
Reply With Quote #2

The result of -1 divided by 7 is -0.14285714285. In your example, the value is probably being rounded.
If what you are trying to do is calculate the total number of pages, this is the correct formula:
Code:
floatround(float(total item count) / float(limit per page), floatround_ceil)
__________________








CrazY. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode