negs

Negate an integer.

  1. int negs(int x, ref bool overflow)
  2. long negs(long x, ref bool overflow)
  3. cent negs(cent x, ref bool overflow)
    pragma(inline, true)
    cent
    negs
    ()
    (
    cent x
    ,
    ref bool overflow
    )

Parameters

x
Type: cent

operand

overflow
Type: bool

set if x cannot be negated, is not affected otherwise

Return Value

Type: cent

the negation of x

Suggestion Box / Bug Report