How do I make 8.05154541825056
to 8.05
?? I looked at the math functions at PHP.net and I can't seem to find anything, is there anyway to do this?? I'd really appreciate help.
<?PHP $number = round(8.05154541825056, 2); echo $number; // Should produce $number == 8.05 ?>
I'll try but I don't think round has a second parameter.
Sure it does. It needs the interger to round to (1s, 10s, 100s, etc...)
I ran the code on my machine and it works fine here. Let me know if you get it working.
Yeah, it works, thanks a bunch.