Javatpoint Logo
Javatpoint Logo

PHP fmod() Function

PHP fmod() function is mathematical function, which is used to return the floating point remainder of the division of the argument.

Syntax:

Parameter Description Required/Optional
X Specifiy the dividend Required
Y Specify the divisor Required

Example 1

Output:

By using 'fmod()' Function your value is:1

Example 2

Output:

Your Given Nos is : x=5.7, y=1.3
By using 'fmod()' Function your value is:0.5

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA