KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
FloatUtil Class Reference

Static floating-point utility helpers. More...

#include <floatutil.h>

Static Public Member Functions

static bool isEvenlyDivisible (double dividend, double divisor)
 Test whether a dividend is evenly divisible by a divisor.
 

Detailed Description

Static floating-point utility helpers.

Static helper methods for floating-point arithmetic checks.

Definition at line 12 of file floatutil.h.

Member Function Documentation

◆ isEvenlyDivisible()

static bool FloatUtil::isEvenlyDivisible ( double  dividend,
double  divisor 
)
static

Test whether a dividend is evenly divisible by a divisor.

Parameters
dividendValue to divide
divisorDivisor to use
Returns
true if dividend / divisor produces no remainder

The documentation for this class was generated from the following file: