fmod(): reminder (modulo) of division

float fmod(float $X,float $y);
$X is the dividend
$Y is the divisor

Output is remainder of $x/$y
echo fmod(5,2); // Output 1
echo "<br>";
echo fmod(10,2); // Output 0 
echo "<br>";
echo fmod(13,2); // Output is 1
echo "<br>";
echo fmod(6,3); // Output is 0

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 All rights reserved worldwide Privacy Policy Disclaimer