Chapter 2

Numbers & Math

Numbers are where most languages quietly betray you: overflow that wraps instead of crashing, 7 / 2 truncating to 3, % flipping sign on a negative. Ascent closes all of it.

This chapter walks through what can no longer go wrong, and the small vocabulary (div, mod, **) that replaces the operators that used to lie to you.