Just as Chalice has a fairly broad selection of integral types, it also has a broad selection of fixed-point types. For the uninitiated, fixed-point arithmetic is like a cross between floating-point and integral arithmetic. Essentially, fixed-point arithmetic involves interpreting integers as being multiples of some value much smaller than 1.
For example:
uwrap16
can represent any number between0x0000
and0xffff
(inclusive) with a precision of0x0001
.0x1d9f
can be represented, but0x1d.9f
cannot.ufix8_8
can represent any number between0x00.00
and0xff.ff
(inclusive) with a precision of0x00.01
.0x1d.9f
can be represented, but0x1d.9fb2
cannot.