KanoopCommonQt
2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
floatutil.h
1
/**
2
* @brief Static floating-point utility helpers.
3
*/
4
#ifndef FLOATUTIL_H
5
#define FLOATUTIL_H
6
7
#include "kanoopcommon.h"
8
9
/**
10
* @brief Static helper methods for floating-point arithmetic checks.
11
*/
12
class
KANOOP_EXPORT
FloatUtil
13
{
14
public
:
15
/**
16
* @brief Test whether a dividend is evenly divisible by a divisor.
17
* @param dividend Value to divide
18
* @param divisor Divisor to use
19
* @return true if dividend / divisor produces no remainder
20
*/
21
static
bool
isEvenlyDivisible
(
double
dividend,
double
divisor);
22
};
23
24
#endif
// FLOATUTIL_H
FloatUtil
Static floating-point utility helpers.
Definition
floatutil.h:13
FloatUtil::isEvenlyDivisible
static bool isEvenlyDivisible(double dividend, double divisor)
Test whether a dividend is evenly divisible by a divisor.
include
Kanoop
floatutil.h
Generated by
1.9.8