HomeManualTopicsTypesSymbols

std::div

divide two integer numbers

Parameters

left
the left operand
right
the right operand

Result

quotient
the integral part of the quotient of left and right

Description

The result is rounded towards zero.

Topic

Numbers

See also

std::times multiply two numbers of any kind
std::over divide two numbers of any kind
std::mod compute the remainder of two integer numbers
std::plus add two numbers of any kind
std::minus subtract two numbers of any kind

Implemented by

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