Did i mention it that you can use Math methods to compare? I said by using ceil() and floor(), you can be able to process the float values.
Type: Posts; User: Mr.777
Did i mention it that you can use Math methods to compare? I said by using ceil() and floor(), you can be able to process the float values.
Well, you can also use ceil() or floor() function of Math class, in order to compare float values to the closest.
Suggestion: Why don't you compare the rational values instead of float values?