Storing prices as raw integers works until currency enters the picture. Build a Money value object that makes rounding bugs impossible.
Storing prices as raw integers works until currency enters the picture. Build a Money value object that makes rounding bugs impossible.