constexpr_trunc

Synopsis

Declared in <folly/ConstexprMath.h>

template<typename T>
requires std::floating_point<T>
constexpr
T
constexpr_trunc(T const t);

Description

mimic: std::trunc (C++23)

Return Value

The value of t truncated toward zero.

Parameters

Name

Description

t

The value to truncate toward zero.

Created with MrDocs