HomeManualTopicsTypesSymbols

std::mod

compute the remainder of two integer numbers

Parameters

left
the left operand
right
the right operand

Result

remainder
the remainder of left and right

Description

The result has the same sign as the dividend

Topic

Numbers

See also

std::div divide two integer numbers
std::times multiply two numbers of any kind
std::over divide two numbers of any kind
std::plus add two numbers of any kind
std::minus subtract two numbers of any kind

Implemented by

std_types::negative_integer implements the *mod* operation
std_types::positive_integer implements the *mod* operation