i have been looking around for a function in php or a solution that will simply allow me to count to number of decimal places in a number.
example
0.477 > 3 decimal places
18.09090 > 5 decimal places
can anyone help in suggesting a way i can simply count the decimal places in a number like this
, eqvalent to this type of javascript code
$p_file = "0.477";
$v_fileLength = $p_file.length; // --> 3
thanks in advance