Javatpoint Logo
Javatpoint Logo

PHP floor() Function

PHP floor() function is mathematical function, which is used to find the fractions down. It returns the next lowest integer value (as float).

Syntax:

Parameter Description Required/Optional
number number value to round down Required

Example 1

Output:

Your number is :3.3
By using 'floor()' function your value is:3

Example 2

Output:

Your number is :7.333
By using 'floor()' function your value is:7

Example 3

Output:

Your number is :-4.8
By using 'floor()' function your value is:-5

Example 4

Output:

Your number is :-0.6
By using 'floor()' function your value is:-1

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