WPILibC++ 2023.4.3
round.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::round_int (const T x) noexcept
 
template<typename T >
constexpr T internal::round_check_internal (const T x) noexcept
 
template<>
constexpr float internal::round_check_internal< float > (const float x) noexcept
 
template<>
constexpr double internal::round_check_internal< double > (const double x) noexcept
 
template<>
constexpr long double internal::round_check_internal< long double > (const long double x) noexcept
 
template<typename T >
constexpr T internal::round_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > round (const T x) noexcept
 Compile-time round function. More...
 

Function Documentation

◆ round()

template<typename T >
constexpr return_t< T > round ( const T  x)
constexprnoexcept

Compile-time round function.

Parameters
xa real-valued input.
Returns
computes the rounding value of the input.