Discussion in 'OT Technology' started by o2, Aug 30, 2006.
Is there a function that rounds a number to the nearest 0.5? All I could find is 1 decimal place....
You can do:
round ($number * 2) / 2
Thanks to HarryR in ##php on irc.freenode.net who got me thinking in the right direction (those IRC channels are handy for quick questions like that).