numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
trunc.h File Reference

Definition of trunc function. More...

#include <cstdint>
#include <limits>
#include "num_collect/constants/zero.h"
+ Include dependency graph for trunc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::constants
 Namespace of constexpr variables and functions.
 

Functions

template<typename T >
constexpr auto num_collect::constants::trunc (T x) -> T
 Truncate the decimal part of a number x.
 

Detailed Description

Definition of trunc function.

Definition in file trunc.h.