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

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

constexpr auto trunc (double arg) noexcept -> double
 Computes the nearest integer not greater in magnitude than arg.
 
constexpr auto trunc (float arg) noexcept -> float
 Computes the nearest integer not greater in magnitude than arg.
 
constexpr auto trunc (integral auto arg) noexcept -> double
 Computes the nearest integer not greater in magnitude than arg.
 
constexpr auto trunc (long double arg) noexcept -> long double
 Computes the nearest integer not greater in magnitude than arg.
 
constexpr auto truncf (float arg) noexcept -> float
 Computes the nearest integer not greater in magnitude than arg.
 
constexpr auto truncl (long double arg) noexcept -> long double
 Computes the nearest integer not greater in magnitude than arg.