All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
rounding.h File Reference

Utilities for numerical rounding. More...

#include <cmath>

Go to the source code of this file.

Namespaces

 icarus::ns::util
 

Functions

template<typename T , typename U >
constexpr T icarus::ns::util::rounddown (T const value, U const quantum, T const offset=T{})
 Returns the value, rounded down. More...
 
template<typename T , typename U >
constexpr T icarus::ns::util::roundup (T const value, U const quantum, T const offset=T{})
 Returns the value, rounded up. More...
 

Detailed Description

Utilities for numerical rounding.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
April 17, 2020

This is a header-only library.

Definition in file rounding.h.