How are carats and carob seeds related?

The weight of a carat (200 milligrams), the standard unit of measurement for gem stones, is based on the weight of the carob seed, which was once used as a weighing standard by jewelers in Africa and the Middle East. Historians believe the word carat is derived from an Arabic word meaning “bean” or seed.