This commit is contained in:
Leonetienne 2021-11-18 20:00:11 +01:00
parent 2a505e0321
commit 72fc9b3538
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ bool Math::RandomChance(const double chance)
int Math::Mod(const int numerator, const int denominator)
{
if (denominator == 0)
throw std::logic_error("Divide by zero");
throw std::logic_error("Division by zero");
// Quick optimizations:

View File

@ -28,7 +28,7 @@ namespace Eule
[[nodiscard]] static constexpr bool Similar(const double a, const double b, const double epsilon = 0.00001);
//! Will compute the actual modulo of a fraction. The % operator returns bs for n<0.
//! May throw divide-by-zero std::logic_error
//! May throw division-by-zero std::logic_error
[[nodiscard]] static int Mod(const int numerator, const int denominator);
//! Will return a random double between `0` and `1`