The original British English spelling of gram was gramme.
However, this is rarely used nowadays, as the American gram is now the international standard.