Negative gold
Negative gold is a bug in NetHack 3.4.3 that occurs as a side effect of integer overflow. If a stack of more than 2147483647 gold pieces is ever created, the quantity becomes negative because it is interpreted as a signed integer. (In some 64-bit builds, you need a considerably larger stack to produce the effect; 64-bit negative gold is not widely understood, because some of its effects are based on all 64 bits and and some on only the bottom 32.) A stack of negative gold has several strange properties.
Creation
In wizard mode, wish for the highest possible amount of gold (2147483647). Then, wish for 1 more gold piece. When combined, the stack turns into -2147483648 gold. You can then optionally wish for more gold to make it more manageable.
In unpatched versions of NetHack 3.4.3, it was also possible to produce negative gold using a bug in the implementation of the stone to flesh spell. If you cast the spell at a monster who was petrified with gold in inventory and who has ever been tame, the monster will be unpetrified with two stacks of gold in inventory. Although this normally only produces linear growth, because the bug only duplicates one stack, taming the monster can manipulate it to drop and pick up the stacks, merging them. Enough doublings will overflow the stack to a negative size, this is normally done with a nymph, which has infinite carrying capacity and thus can carry the very large stacks of gold produced. The bug was patched out on most public servers and by most variants, and was fixed in NetHack 3.6.0.
Properties
Negative gold had some strange properties (which probably still apply if you obtain it using wizard mode):
- Because it has negative weight, negative gold decreases your burden level. A maximum-sized stack of negative gold has a negative weight approximately equivalent to that of -42949 loadstones.
- Eating negative gold (as a rock mole or other metallivore) makes you more hungry. A maximum-sized stack can leave you fainting from hunger for over 30,000 turns.
- Negative gold reacts strangely with shops: dropping negative gold within a shop's boundaries causes you to accrue debt instead of credit, and picking it up will give you credit rather than debt.
- You cannot split a stack of negative gold; attempting to drop just part of it will always drop the entire stack.