PHP - Math - Round Number Function
Posted
by aSeptik
on Stack Overflow
See other posts from Stack Overflow
or by aSeptik
Published on 2010-03-27T16:29:50Z
Indexed on
2010/03/27
16:33 UTC
Read the original article
Hit count: 396
Hi All guys!
this time i have a math question for you!
Assuming we have three numbers one is the Number of Votes the second is the Total Values and the last is the Units Ratings.
units_ratings can be a number from 1 to 10;
if ( total_values / units_ratings != number_of_votes ) {
//do something for let the "number_of_votes" fit the division!
}
I ask this to you, cause i want know the best (fastest) way of achieve this!
Thanks!
© Stack Overflow or respective owner