SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ operator/=() [2/2]

template<typename T>
requires std::is_integral_v<T>
Fxp & SRL::Math::Types::Fxp::operator/= ( const T & value)
inlineconstexpr

Divides the current fixed-point value by an integer (a /= b).

Template Parameters
TThe type of the integer (e.g., int, int32_t).
Parameters
valueThe integer value to divide by.
Returns
A reference to this object after performing the division, allowing for chaining of operations.
Note
This operation modifies the current instance in place. Ensure that the input value is non-zero to avoid division by zero errors.