typo
This commit is contained in:
parent
2a505e0321
commit
72fc9b3538
@ -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:
|
||||
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user