The OpenD Programming Language

negs

Negate an integer.

  1. int negs(int x, bool overflow)
  2. long negs(long x, bool overflow)
  3. cent negs(cent x, bool overflow)
    nothrow @safe @nogc pure pragma(inline, true)
    static if(is(cent))
    cent
    negs
    (
    cent x
    ,
    scope ref bool overflow
    )

Parameters

x cent

operand

overflow bool

set if x cannot be negated, is not affected otherwise

Return Value

Type: cent

the negation of x

Meta