HFT CORE SYSTEMS

Fixed-point money and quantity types

Lesson 54 of 96Phase 05: Low-latency C++
Video lesson coming soon

The written objectives and hands-on lab are available now.

cppvalley on YouTube ↗

Learning objectives

What you should understand

  1. Avoid floating-point ambiguity in price and quantity
  2. Encode scale, range and rounding in types
  3. Detect overflow and invalid arithmetic

Lab

Hands-on exercise

Implement typed price and quantity arithmetic with boundary tests.

Deliverable

Evidence of completion

A fixed-point library with wire conversions and invariant tests.

Prerequisite
EP 53

Phase 05

Low-latency C++

Full curriculum