type
fixeds
fixeds
A fixeds is a raw buffer whose elements are fixed (Q16.16) values: index it with buffer[i] to read or write a fixed directly, with no bounds checking. You obtain one by allocating raw storage with words(n) — each slot is 32 bits — and typing the binding as fixeds so that indexing uses the fixed-point element size. Reach for it when you want a tight, fixed-size numeric array with deterministic math — a table of speeds, per-tile weights, a heightfield — and a growable []fixed slice would be more than you need.
Example
program Heights {
handler Setup phase Start {
let heights: fixeds = words(4)
heights[0] = fixed(2)
heights[1] = heights[0] + fixed(1)
print(floor(heights[1]))
}
}