tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
round.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

constexpr auto round (double arg) noexcept -> double
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
 
constexpr auto round (float arg) noexcept -> float
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
 
constexpr auto round (integral auto arg) noexcept -> double
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
 
constexpr auto round (long double arg) noexcept -> long double
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
 
constexpr auto roundf (float arg) noexcept -> float
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.
 
constexpr auto roundl (long double arg) noexcept -> long double
 Computes the nearest integer value to arg (in floating-point format), rounding halfway cases away from zero, regardless of the current rounding mode.