Easy way to check that something is a number w/ max 2 decimal places of accuracy?
- by aslum
I want to make sure the input is A)a number and B)has at most 2 decimals.
$number[$i]=int(100*$number[$i])/100;
I imagine there is a more efficient way to do this... any suggestions? (using PHP).