Function |neg
std/ops/num::|neg
Usage
|neg<N>(val)
Generics
◻ N: Neg
Parameters
↳ val: N
Return
↴ N
Return negation of given value
This function is infaillible but may overflow if -val is out of bounds for the data type.
std/ops/num::|neg
|neg<N>(val)
◻ N: Neg
↳ val: N
↴ N
Return negation of given value
This function is infaillible but may overflow if -val is out of bounds for the data type.