How the gram price is derived
Although Malaysian shops quote per gram, the global market quotes gold in US dollars per troy ounce. One troy ounce equals exactly 31.1034768 grams, so the pure gold (24K) gram price is the ounce price divided by 31.1034768, converted to MYR at the live exchange rate. Lower purities are then a simple multiplication: 22K/916 is the 24K gram price × 0.9167, and 18K is × 0.75.
Malaysian gold shops quote prices in Ringgit per gram rather than per ounce. The gram price you see in a shop window is based on the same international XAU/USD spot price shown on this page, converted to MYR and adjusted for the shop's buy/sell spread.