Source Code:
(back to article)
<?php $num = 3.14; if (fmod($num, 1) !== 0.0) { echo '$num is a decimal number'; } else { echo '$num is not a decimal number'; }
Result:
Report an issue