Jump to content

[SOLVED] PHP Division Problem


abch624

Recommended Posts

Hi Guys,

 

I have a problem as per bellow:

 

$page = $nume / $limit;

 

Now if $nume is 12 and $limit is 5 this will return 2.4 but I would like it to return 3.

an other example would be if $nume is 16 and $limit is 5 this will return 3.2 but I want it to return 4.

 

Any way I can do this?

 

Cheers - Zahid

Link to comment
https://forums.phpfreaks.com/topic/162628-solved-php-division-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.