Home > categories > Construction & Real Estate > Other Flooring > the definition of floor...?
Question:

the definition of floor...?

what is the definition of the word floor in C++?

Answer:

I'm guessing this is the floor() function in the cmath library. The floor() function is the greatest integer function which you may know from mathematics. floor(x) returns the largest integer less than or equal to x. Examples: floor(2.5) returns 2 floor(0) returns 0 floor(12.999) returns 12 floor(-13.5) returns -14 (because -14 is the largest integer which is LESS THAN OR EQUAL TO -13.5) Hope this helps.

Share to: