fixedpoint
Fixed-point numbers with an underlying type and precision divisor.
Generally this is a power of 10 but you can do other things, like 256 to use a lower byte etc. Presumably the compiler optimises operations to use shifting instead of division/multiplication here.
// use it directly
let x = from;
println!; // 10.6
// have a wrapper that controls what operations can be done
// useful for units of measurement that have special semantics
// for example, multiplying lengths gives an area.
;
;