Namespaces
Variants
Actions

std::floor, std::floorf, std::floorl

From cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
 
Defined in header <cmath>
(1)
float       floor ( float num );

double      floor ( double num );

long double floor ( long double num );
(until C++23)
constexpr /*floating-point-type*/
            floor ( /*floating-point-type*/ num );
(since C++23)
float       floorf( float num );
(2) (since C++11)
(constexpr since C++23)
long double floorl( long double num );
(3) (since C++11)
(constexpr since C++23)
SIMD overload (since C++26)
Defined in header