PHP: get number of decimal digits

Posted by Erwin Paglinawan on Stack Overflow See other posts from Stack Overflow or by Erwin Paglinawan
Published on 2010-03-12T02:17:10Z Indexed on 2010/03/12 2:27 UTC
Read the original article Hit count: 411

Filed under:
|

Hi!

Is there a straightforward way of determining the number of decimal places in a(n) integer/double value in PHP? (that is, without using explode)

Thanks,

Erwin

© Stack Overflow or respective owner

Related posts about php

Related posts about decimal