hex.neg¶
x[:n] = -x[:n]
Signature¶
def neg n, x { ... }
Defined in hex/math_basic.fj — lines 192–195 (view on GitHub).
Complexity¶
Time:
~@+4nSpace:
n(1.5@+17)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def neg n, x {
.not n, x
.inc n, x
}
Depends on¶
Used by¶
Example uses¶
hex.absinhex/math_basic.fjhex.input_dec_int_untilinhex/input.fjhex.print_intinhex/output.fj
← Previous: hex.dec.step
Next: hex.abs →