HardDesign: Payment System (Stripe/PayPal)

Why should monetary amounts be stored as integers (cents) rather than floats?

Tests your understanding of this concept.

Answer Options

AIntegers are faster to process
BFloating-point arithmetic has precision errors that cause incorrect financial calculations
CPCI DSS requires integers
DIntegers support more currencies

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: Payment System (Stripe/PayPal) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: Payment System (Stripe/PayPal) topic (System Design Cases).

More Design: Payment System (Stripe/PayPal) Questions