Casino Price Overflow (Japan-only)
If you try buying a number of casino coins in Dragon Quest IV that would exceed the value of 16,777,215, then the price will essentially wrap around, i.e. the price you pay will become the remainder of the actual price divided by 16,777,216. This is most well known for permitting you to buy 838,861 coins for 4 gold in Chapter 5.