Module 3 · Build Openbell Lesson 9 of 54
Money in Code and the Order Lifecycle
Cents not decimals, ticks and rounding, and the states every order moves through.
Transcript
17 sentences · select one to jump thereCheck your understanding
Sara cancels just as the rest of her order fills, and the two messages cross on the wire. What must the code assume?
Lesson notes
The rule
Store money as whole cents, decide every rounding rule, and treat a cancel as a wish, not a result