you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 1 year ago

As other people mentioned, things like the decimal structure works well, but you can also just use an int to store how many pennies something costs and convert it to dollars for display.

  • source
  • parent