Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 44s1 days 16 hours 1 minutes 44 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 44s1 days 16 hours 1 minutes 44 seconds.

Sign in to watch this lesson
Advanced - Number Theory · 4:17
When a value outgrows 64 bits, store it as a vector of 9-digit limbs in base 10^9, least significant first, and print every limb but the top one padded to 9 digits. Addition and subtraction carry and borrow limb by limb, multiplication fills an O(n·m) grid of 64-bit limb products, and division by a small number runs from the top limb down; the same thinking explains why trading systems keep prices as integer ticks and accumulate notional in 128 bits instead of doubles.