Fixed-point money and quantity types
Binary Protocol and Order-Book Engineering · Advanced → Expert
Structured lesson outlineThis lesson's video and full tutorial are not yet published. The learning objectives and exercises below outline what the finished lesson will cover.
Learning objectives
Focus on the underlying model and the engineering decisions rather than memorizing a single code snippet.
- 01
Avoid floating-point ambiguity in price and quantity
- 02
Encode scale, range and rounding in types
- 03
Detect overflow and invalid arithmetic
Hands-on exercise
Implement typed price and quantity arithmetic with boundary tests.
What a good result looks like
A fixed-point library with wire conversions and invariant tests.
APPLY WHAT YOU LEARN
3 related C++ topicsC++ practice problems
01Implement a Fixed-Point Decimal Arithmetic TypeHFT Systems · MediumIn review02Convert Fixed-Point Prices to TicksHFT Systems · EasyIn review03Aggregate Executed Quantity by SymbolHFT Systems · EasyIn review
In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.
Progress is saved on this device.