54#include <StormByte/type_traits/safe.hxx>
107 constexpr bool Valid() const noexcept {
108 return num > 0 &&
den > 0;
116 return den ?
static_cast<double>(
num) /
static_cast<double>(
den) : 0.0;
133 return num == other.num &&
den == other.den;
142 return !(*
this == other);
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Buffer::Bridge)
Root namespace of the StormByte C++ suite.
#define STORMBYTE_MULTIMEDIA_PUBLIC
Definition visibility.h:61