get float value using Remainder of $x divided by $y in php code example Example: function to find the mod of a number in php PHP fmod() Function