semf
dividewithround.h
Go to the documentation of this file.
1
10#ifndef SEMF_UTILS_PROCESSING_DIVIDEWITHROUND_H_
11#define SEMF_UTILS_PROCESSING_DIVIDEWITHROUND_H_
12
13#include <cstdint>
14
15namespace semf
16{
23{
24public:
31 static intmax_t divide(intmax_t dividend, intmax_t divisor);
32};
33} /* namespace semf */
34#endif /* SEMF_UTILS_PROCESSING_DIVIDEWITHROUND_H_ */
Class that divides 2 integers with a correct rounding. If the result has a remainder (decimal) less t...
static intmax_t divide(intmax_t dividend, intmax_t divisor)
Divides 2 integers with the right rounding.