HomeManualTopicsTypesSymbols

std::negate

negate the numeric argument

Parameter

number
the number to be negated

Result

negated
the negation of number

Description

The result is equal to

0 - argument

Topic

Numbers

See also

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

Implemented by

std_types::negative_integer returns a
std_types::positive_integer returns a negative_integer or 0
std_types::real returns the negated real value