I have a php variable that I would like to round up if it closest value is i.e
113.845602277119 so this var would become 113.85
and round down if var is i.e 270.27388400703 would become 270.27 NOT 270.28
I presume i'll need a function to check the decimal value and update accordingly?
or a better example of what I want.
i.e this dynamic number 16.94502 I want this to round down to 16.94 the .9452 is closest to .95 but as the var is dynamic I need a check to do the inverse, other times the var could be 41.1378 is closest to .14 and so I want a round up