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.

1:11 clip18:30–19:41 in the full courseWatch on YouTube

Transcript

17 sentences · select one to jump there

Check 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?

Choose one answer

Lesson notes

The rule

Store money as whole cents, decide every rounding rule, and treat a cancel as a wish, not a result