Hi, is it possible to round to the nearest 3 ie...
2 = 3 7 = 9 14 = 15 20 = 21
Thanks for any help
Try this, Craig:
function roundTo3($num) { if($num%3==0) {return $num;} if(($num+1)%3==0) {return ($num+1);} else {return $num-1;} }
Hope that helps!
Happy coding! 🙂