Expand description
Dealing with fixed-point numbers used in the game.
Note that this module currently only deals with binary fixed-point representations. The game also sometimes uses decimal representations of fixed-point numbers (eg. 0x64 -> 100 -> ‘01.00’).
This pulls in parts of the fixed crate,
which describes these numbers as follows:
An n-bit fixed-point number has f =
Fracfractional bits where 0 ≤ f ≤ n, and n − f integer bits. For example,FixedI32<U24>is a 32-bit signed fixed-point number with n = 32 total bits, f = 24 fractional bits, and n − f = 8 integer bits.FixedI32<U0>behaves like [i32], andFixedU32<U0>behaves like [u32].The difference between any two successive representable numbers is constant throughout the possible range for a fixed-point number: Δ = 1/2f. When f = 0, like in
FixedI32<U0>, Δ = 1 because representable numbers are integers, and the difference between two successive integers is 1. When f = n, Δ = 1/2n and the value lies in the range −0.5 ≤ x < 0.5 for signed numbers likeFixedI32<U32>, and in the range 0 ≤ x < 1 for unsigned numbers likeFixedU32<U32>.
Think of these similar to floats, but instead of having an arbitrary amount of fractional digits/bits and arbitrary precision, fixed-point numbers have a set amount of fractional digits/bits that are fully accurate.
Commonly used fixed numbers:
- I24F8: 32-bit number that has 24 integer bits and eight fractional bits.
You have several options to create a fixed-point number:
let n1 = I24F8::from_num(10);
assert_eq!(n1, 10.0);
// This will round to the nearest possible fixed representation. In this case,
// this value will fit, since 2 fits in a 24-bit integer and 75 fits in an
// 8-bit integer.
let n2 = I24F8::from_num(2.75);
// Note that due to precision differences this assertion can fail with some values.
assert_eq!(n2, 2.75);
// It's also possible (and probably faster) to directly use a number already encoded
// as a fixed number. This has the lower byte set to 0, which means the fractional
// bit will be 0, and the upper byte to 1, which means this is "1.0".
let n3 = I24F8::from_bits(0x01_00);
assert_eq!(n3, 1.0);
let n4 = I24F8::from_bits(0x01_AB);
// Using strings here to compare, due to the before mentioned accuracy issues.
assert_eq!(format!("{}", n4), "1.668");
let n5 = I24F8::from_bits(0x01_FF);
assert_eq!(format!("{}", n5), "1.996");Modules
- Extra types that do not need to be handled directly.
Structs
- An eight-bit signed number withFracfractional bits.
- A 16-bit signed number withFracfractional bits.
- A 32-bit signed number withFracfractional bits.
- An eight-bit unsigned number withFracfractional bits.
- A 16-bit unsigned number withFracfractional bits.
- A 32-bit unsigned number withFracfractional bits.
Type Definitions
- FixedI8with no integer bits and eight fractional bits.
- FixedI16with no integer bits and 16 fractional bits.
- FixedI32with no integer bits and 32 fractional bits.
- FixedI64with no integer bits and 64 fractional bits.
- FixedI128with no integer bits and 128 fractional bits.
- FixedI8with one integer bit and seven fractional bits.
- FixedI16with one integer bit and 15 fractional bits.
- FixedI32with one integer bit and 31 fractional bits.
- FixedI64with one integer bit and 63 fractional bits.
- FixedI128with one integer bit and 127 fractional bits.
- FixedI8with two integer bits and six fractional bits.
- FixedI16with two integer bits and 14 fractional bits.
- FixedI32with two integer bits and 30 fractional bits.
- FixedI64with two integer bits and 62 fractional bits.
- FixedI128with two integer bits and 126 fractional bits.
- FixedI8with three integer bits and five fractional bits.
- FixedI16with three integer bits and 13 fractional bits.
- FixedI32with three integer bits and 29 fractional bits.
- FixedI64with three integer bits and 61 fractional bits.
- FixedI128with three integer bits and 125 fractional bits.
- FixedI8with four integer bits and four fractional bits.
- FixedI16with four integer bits and 12 fractional bits.
- FixedI32with four integer bits and 28 fractional bits.
- FixedI64with four integer bits and 60 fractional bits.
- FixedI128with four integer bits and 124 fractional bits.
- FixedI8with five integer bits and three fractional bits.
- FixedI16with five integer bits and 11 fractional bits.
- FixedI32with five integer bits and 27 fractional bits.
- FixedI64with five integer bits and 59 fractional bits.
- FixedI128with five integer bits and 123 fractional bits.
- FixedI8with six integer bits and two fractional bits.
- FixedI16with six integer bits and 10 fractional bits.
- FixedI32with six integer bits and 26 fractional bits.
- FixedI64with six integer bits and 58 fractional bits.
- FixedI128with six integer bits and 122 fractional bits.
- FixedI8with seven integer bits and one fractional bit.
- FixedI16with seven integer bits and nine fractional bits.
- FixedI32with seven integer bits and 25 fractional bits.
- FixedI64with seven integer bits and 57 fractional bits.
- FixedI128with seven integer bits and 121 fractional bits.
- FixedI8with eight integer bits and no fractional bits.
- FixedI16with eight integer bits and eight fractional bits.
- FixedI32with eight integer bits and 24 fractional bits.
- FixedI64with eight integer bits and 56 fractional bits.
- FixedI128with eight integer bits and 120 fractional bits.
- FixedI16with nine integer bits and seven fractional bits.
- FixedI32with nine integer bits and 23 fractional bits.
- FixedI64with nine integer bits and 55 fractional bits.
- FixedI128with nine integer bits and 119 fractional bits.
- FixedI16with 10 integer bits and six fractional bits.
- FixedI32with 10 integer bits and 22 fractional bits.
- FixedI64with 10 integer bits and 54 fractional bits.
- FixedI128with 10 integer bits and 118 fractional bits.
- FixedI16with 11 integer bits and five fractional bits.
- FixedI32with 11 integer bits and 21 fractional bits.
- FixedI64with 11 integer bits and 53 fractional bits.
- FixedI128with 11 integer bits and 117 fractional bits.
- FixedI16with 12 integer bits and four fractional bits.
- FixedI32with 12 integer bits and 20 fractional bits.
- FixedI64with 12 integer bits and 52 fractional bits.
- FixedI128with 12 integer bits and 116 fractional bits.
- FixedI16with 13 integer bits and three fractional bits.
- FixedI32with 13 integer bits and 19 fractional bits.
- FixedI64with 13 integer bits and 51 fractional bits.
- FixedI128with 13 integer bits and 115 fractional bits.
- FixedI16with 14 integer bits and two fractional bits.
- FixedI32with 14 integer bits and 18 fractional bits.
- FixedI64with 14 integer bits and 50 fractional bits.
- FixedI128with 14 integer bits and 114 fractional bits.
- FixedI16with 15 integer bits and one fractional bit.
- FixedI32with 15 integer bits and 17 fractional bits.
- FixedI64with 15 integer bits and 49 fractional bits.
- FixedI128with 15 integer bits and 113 fractional bits.
- FixedI16with 16 integer bits and no fractional bits.
- FixedI32with 16 integer bits and 16 fractional bits.
- FixedI64with 16 integer bits and 48 fractional bits.
- FixedI128with 16 integer bits and 112 fractional bits.
- FixedI32with 17 integer bits and 15 fractional bits.
- FixedI64with 17 integer bits and 47 fractional bits.
- FixedI128with 17 integer bits and 111 fractional bits.
- FixedI32with 18 integer bits and 14 fractional bits.
- FixedI64with 18 integer bits and 46 fractional bits.
- FixedI128with 18 integer bits and 110 fractional bits.
- FixedI32with 19 integer bits and 13 fractional bits.
- FixedI64with 19 integer bits and 45 fractional bits.
- FixedI128with 19 integer bits and 109 fractional bits.
- FixedI32with 20 integer bits and 12 fractional bits.
- FixedI64with 20 integer bits and 44 fractional bits.
- FixedI128with 20 integer bits and 108 fractional bits.
- FixedI32with 21 integer bits and 11 fractional bits.
- FixedI64with 21 integer bits and 43 fractional bits.
- FixedI128with 21 integer bits and 107 fractional bits.
- FixedI32with 22 integer bits and 10 fractional bits.
- FixedI64with 22 integer bits and 42 fractional bits.
- FixedI128with 22 integer bits and 106 fractional bits.
- FixedI32with 23 integer bits and nine fractional bits.
- FixedI64with 23 integer bits and 41 fractional bits.
- FixedI128with 23 integer bits and 105 fractional bits.
- FixedI32with 24 integer bits and eight fractional bits.
- FixedI64with 24 integer bits and 40 fractional bits.
- FixedI128with 24 integer bits and 104 fractional bits.
- FixedI32with 25 integer bits and seven fractional bits.
- FixedI64with 25 integer bits and 39 fractional bits.
- FixedI128with 25 integer bits and 103 fractional bits.
- FixedI32with 26 integer bits and six fractional bits.
- FixedI64with 26 integer bits and 38 fractional bits.
- FixedI128with 26 integer bits and 102 fractional bits.
- FixedI32with 27 integer bits and five fractional bits.
- FixedI64with 27 integer bits and 37 fractional bits.
- FixedI128with 27 integer bits and 101 fractional bits.
- FixedI32with 28 integer bits and four fractional bits.
- FixedI64with 28 integer bits and 36 fractional bits.
- FixedI128with 28 integer bits and 100 fractional bits.
- FixedI32with 29 integer bits and three fractional bits.
- FixedI64with 29 integer bits and 35 fractional bits.
- FixedI128with 29 integer bits and 99 fractional bits.
- FixedI32with 30 integer bits and two fractional bits.
- FixedI64with 30 integer bits and 34 fractional bits.
- FixedI128with 30 integer bits and 98 fractional bits.
- FixedI32with 31 integer bits and one fractional bit.
- FixedI64with 31 integer bits and 33 fractional bits.
- FixedI128with 31 integer bits and 97 fractional bits.
- FixedI32with 32 integer bits and no fractional bits.
- FixedI64with 32 integer bits and 32 fractional bits.
- FixedI128with 32 integer bits and 96 fractional bits.
- FixedI64with 33 integer bits and 31 fractional bits.
- FixedI128with 33 integer bits and 95 fractional bits.
- FixedI64with 34 integer bits and 30 fractional bits.
- FixedI128with 34 integer bits and 94 fractional bits.
- FixedI64with 35 integer bits and 29 fractional bits.
- FixedI128with 35 integer bits and 93 fractional bits.
- FixedI64with 36 integer bits and 28 fractional bits.
- FixedI128with 36 integer bits and 92 fractional bits.
- FixedI64with 37 integer bits and 27 fractional bits.
- FixedI128with 37 integer bits and 91 fractional bits.
- FixedI64with 38 integer bits and 26 fractional bits.
- FixedI128with 38 integer bits and 90 fractional bits.
- FixedI64with 39 integer bits and 25 fractional bits.
- FixedI128with 39 integer bits and 89 fractional bits.
- FixedI64with 40 integer bits and 24 fractional bits.
- FixedI128with 40 integer bits and 88 fractional bits.
- FixedI64with 41 integer bits and 23 fractional bits.
- FixedI128with 41 integer bits and 87 fractional bits.
- FixedI64with 42 integer bits and 22 fractional bits.
- FixedI128with 42 integer bits and 86 fractional bits.
- FixedI64with 43 integer bits and 21 fractional bits.
- FixedI128with 43 integer bits and 85 fractional bits.
- FixedI64with 44 integer bits and 20 fractional bits.
- FixedI128with 44 integer bits and 84 fractional bits.
- FixedI64with 45 integer bits and 19 fractional bits.
- FixedI128with 45 integer bits and 83 fractional bits.
- FixedI64with 46 integer bits and 18 fractional bits.
- FixedI128with 46 integer bits and 82 fractional bits.
- FixedI64with 47 integer bits and 17 fractional bits.
- FixedI128with 47 integer bits and 81 fractional bits.
- FixedI64with 48 integer bits and 16 fractional bits.
- FixedI128with 48 integer bits and 80 fractional bits.
- FixedI64with 49 integer bits and 15 fractional bits.
- FixedI128with 49 integer bits and 79 fractional bits.
- FixedI64with 50 integer bits and 14 fractional bits.
- FixedI128with 50 integer bits and 78 fractional bits.
- FixedI64with 51 integer bits and 13 fractional bits.
- FixedI128with 51 integer bits and 77 fractional bits.
- FixedI64with 52 integer bits and 12 fractional bits.
- FixedI128with 52 integer bits and 76 fractional bits.
- FixedI64with 53 integer bits and 11 fractional bits.
- FixedI128with 53 integer bits and 75 fractional bits.
- FixedI64with 54 integer bits and 10 fractional bits.
- FixedI128with 54 integer bits and 74 fractional bits.
- FixedI64with 55 integer bits and nine fractional bits.
- FixedI128with 55 integer bits and 73 fractional bits.
- FixedI64with 56 integer bits and eight fractional bits.
- FixedI128with 56 integer bits and 72 fractional bits.
- FixedI64with 57 integer bits and seven fractional bits.
- FixedI128with 57 integer bits and 71 fractional bits.
- FixedI64with 58 integer bits and six fractional bits.
- FixedI128with 58 integer bits and 70 fractional bits.
- FixedI64with 59 integer bits and five fractional bits.
- FixedI128with 59 integer bits and 69 fractional bits.
- FixedI64with 60 integer bits and four fractional bits.
- FixedI128with 60 integer bits and 68 fractional bits.
- FixedI64with 61 integer bits and three fractional bits.
- FixedI128with 61 integer bits and 67 fractional bits.
- FixedI64with 62 integer bits and two fractional bits.
- FixedI128with 62 integer bits and 66 fractional bits.
- FixedI64with 63 integer bits and one fractional bit.
- FixedI128with 63 integer bits and 65 fractional bits.
- FixedI64with 64 integer bits and no fractional bits.
- FixedI128with 64 integer bits and 64 fractional bits.
- FixedI128with 65 integer bits and 63 fractional bits.
- FixedI128with 66 integer bits and 62 fractional bits.
- FixedI128with 67 integer bits and 61 fractional bits.
- FixedI128with 68 integer bits and 60 fractional bits.
- FixedI128with 69 integer bits and 59 fractional bits.
- FixedI128with 70 integer bits and 58 fractional bits.
- FixedI128with 71 integer bits and 57 fractional bits.
- FixedI128with 72 integer bits and 56 fractional bits.
- FixedI128with 73 integer bits and 55 fractional bits.
- FixedI128with 74 integer bits and 54 fractional bits.
- FixedI128with 75 integer bits and 53 fractional bits.
- FixedI128with 76 integer bits and 52 fractional bits.
- FixedI128with 77 integer bits and 51 fractional bits.
- FixedI128with 78 integer bits and 50 fractional bits.
- FixedI128with 79 integer bits and 49 fractional bits.
- FixedI128with 80 integer bits and 48 fractional bits.
- FixedI128with 81 integer bits and 47 fractional bits.
- FixedI128with 82 integer bits and 46 fractional bits.
- FixedI128with 83 integer bits and 45 fractional bits.
- FixedI128with 84 integer bits and 44 fractional bits.
- FixedI128with 85 integer bits and 43 fractional bits.
- FixedI128with 86 integer bits and 42 fractional bits.
- FixedI128with 87 integer bits and 41 fractional bits.
- FixedI128with 88 integer bits and 40 fractional bits.
- FixedI128with 89 integer bits and 39 fractional bits.
- FixedI128with 90 integer bits and 38 fractional bits.
- FixedI128with 91 integer bits and 37 fractional bits.
- FixedI128with 92 integer bits and 36 fractional bits.
- FixedI128with 93 integer bits and 35 fractional bits.
- FixedI128with 94 integer bits and 34 fractional bits.
- FixedI128with 95 integer bits and 33 fractional bits.
- FixedI128with 96 integer bits and 32 fractional bits.
- FixedI128with 97 integer bits and 31 fractional bits.
- FixedI128with 98 integer bits and 30 fractional bits.
- FixedI128with 99 integer bits and 29 fractional bits.
- FixedI128with 100 integer bits and 28 fractional bits.
- FixedI128with 101 integer bits and 27 fractional bits.
- FixedI128with 102 integer bits and 26 fractional bits.
- FixedI128with 103 integer bits and 25 fractional bits.
- FixedI128with 104 integer bits and 24 fractional bits.
- FixedI128with 105 integer bits and 23 fractional bits.
- FixedI128with 106 integer bits and 22 fractional bits.
- FixedI128with 107 integer bits and 21 fractional bits.
- FixedI128with 108 integer bits and 20 fractional bits.
- FixedI128with 109 integer bits and 19 fractional bits.
- FixedI128with 110 integer bits and 18 fractional bits.
- FixedI128with 111 integer bits and 17 fractional bits.
- FixedI128with 112 integer bits and 16 fractional bits.
- FixedI128with 113 integer bits and 15 fractional bits.
- FixedI128with 114 integer bits and 14 fractional bits.
- FixedI128with 115 integer bits and 13 fractional bits.
- FixedI128with 116 integer bits and 12 fractional bits.
- FixedI128with 117 integer bits and 11 fractional bits.
- FixedI128with 118 integer bits and 10 fractional bits.
- FixedI128with 119 integer bits and nine fractional bits.
- FixedI128with 120 integer bits and eight fractional bits.
- FixedI128with 121 integer bits and seven fractional bits.
- FixedI128with 122 integer bits and six fractional bits.
- FixedI128with 123 integer bits and five fractional bits.
- FixedI128with 124 integer bits and four fractional bits.
- FixedI128with 125 integer bits and three fractional bits.
- FixedI128with 126 integer bits and two fractional bits.
- FixedI128with 127 integer bits and one fractional bit.
- FixedI128with 128 integer bits and no fractional bits.
- FixedU8with no integer bits and eight fractional bits.
- FixedU16with no integer bits and 16 fractional bits.
- FixedU32with no integer bits and 32 fractional bits.
- FixedU64with no integer bits and 64 fractional bits.
- FixedU128with no integer bits and 128 fractional bits.
- FixedU8with one integer bit and seven fractional bits.
- FixedU16with one integer bit and 15 fractional bits.
- FixedU32with one integer bit and 31 fractional bits.
- FixedU64with one integer bit and 63 fractional bits.
- FixedU128with one integer bit and 127 fractional bits.
- FixedU8with two integer bits and six fractional bits.
- FixedU16with two integer bits and 14 fractional bits.
- FixedU32with two integer bits and 30 fractional bits.
- FixedU64with two integer bits and 62 fractional bits.
- FixedU128with two integer bits and 126 fractional bits.
- FixedU8with three integer bits and five fractional bits.
- FixedU16with three integer bits and 13 fractional bits.
- FixedU32with three integer bits and 29 fractional bits.
- FixedU64with three integer bits and 61 fractional bits.
- FixedU128with three integer bits and 125 fractional bits.
- FixedU8with four integer bits and four fractional bits.
- FixedU16with four integer bits and 12 fractional bits.
- FixedU32with four integer bits and 28 fractional bits.
- FixedU64with four integer bits and 60 fractional bits.
- FixedU128with four integer bits and 124 fractional bits.
- FixedU8with five integer bits and three fractional bits.
- FixedU16with five integer bits and 11 fractional bits.
- FixedU32with five integer bits and 27 fractional bits.
- FixedU64with five integer bits and 59 fractional bits.
- FixedU128with five integer bits and 123 fractional bits.
- FixedU8with six integer bits and two fractional bits.
- FixedU16with six integer bits and 10 fractional bits.
- FixedU32with six integer bits and 26 fractional bits.
- FixedU64with six integer bits and 58 fractional bits.
- FixedU128with six integer bits and 122 fractional bits.
- FixedU8with seven integer bits and one fractional bit.
- FixedU16with seven integer bits and nine fractional bits.
- FixedU32with seven integer bits and 25 fractional bits.
- FixedU64with seven integer bits and 57 fractional bits.
- FixedU128with seven integer bits and 121 fractional bits.
- FixedU8with eight integer bits and no fractional bits.
- FixedU16with eight integer bits and eight fractional bits.
- FixedU32with eight integer bits and 24 fractional bits.
- FixedU64with eight integer bits and 56 fractional bits.
- FixedU128with eight integer bits and 120 fractional bits.
- FixedU16with nine integer bits and seven fractional bits.
- FixedU32with nine integer bits and 23 fractional bits.
- FixedU64with nine integer bits and 55 fractional bits.
- FixedU128with nine integer bits and 119 fractional bits.
- FixedU16with 10 integer bits and six fractional bits.
- FixedU32with 10 integer bits and 22 fractional bits.
- FixedU64with 10 integer bits and 54 fractional bits.
- FixedU128with 10 integer bits and 118 fractional bits.
- FixedU16with 11 integer bits and five fractional bits.
- FixedU32with 11 integer bits and 21 fractional bits.
- FixedU64with 11 integer bits and 53 fractional bits.
- FixedU128with 11 integer bits and 117 fractional bits.
- FixedU16with 12 integer bits and four fractional bits.
- FixedU32with 12 integer bits and 20 fractional bits.
- FixedU64with 12 integer bits and 52 fractional bits.
- FixedU128with 12 integer bits and 116 fractional bits.
- FixedU16with 13 integer bits and three fractional bits.
- FixedU32with 13 integer bits and 19 fractional bits.
- FixedU64with 13 integer bits and 51 fractional bits.
- FixedU128with 13 integer bits and 115 fractional bits.
- FixedU16with 14 integer bits and two fractional bits.
- FixedU32with 14 integer bits and 18 fractional bits.
- FixedU64with 14 integer bits and 50 fractional bits.
- FixedU128with 14 integer bits and 114 fractional bits.
- FixedU16with 15 integer bits and one fractional bit.
- FixedU32with 15 integer bits and 17 fractional bits.
- FixedU64with 15 integer bits and 49 fractional bits.
- FixedU128with 15 integer bits and 113 fractional bits.
- FixedU16with 16 integer bits and no fractional bits.
- FixedU32with 16 integer bits and 16 fractional bits.
- FixedU64with 16 integer bits and 48 fractional bits.
- FixedU128with 16 integer bits and 112 fractional bits.
- FixedU32with 17 integer bits and 15 fractional bits.
- FixedU64with 17 integer bits and 47 fractional bits.
- FixedU128with 17 integer bits and 111 fractional bits.
- FixedU32with 18 integer bits and 14 fractional bits.
- FixedU64with 18 integer bits and 46 fractional bits.
- FixedU128with 18 integer bits and 110 fractional bits.
- FixedU32with 19 integer bits and 13 fractional bits.
- FixedU64with 19 integer bits and 45 fractional bits.
- FixedU128with 19 integer bits and 109 fractional bits.
- FixedU32with 20 integer bits and 12 fractional bits.
- FixedU64with 20 integer bits and 44 fractional bits.
- FixedU128with 20 integer bits and 108 fractional bits.
- FixedU32with 21 integer bits and 11 fractional bits.
- FixedU64with 21 integer bits and 43 fractional bits.
- FixedU128with 21 integer bits and 107 fractional bits.
- FixedU32with 22 integer bits and 10 fractional bits.
- FixedU64with 22 integer bits and 42 fractional bits.
- FixedU128with 22 integer bits and 106 fractional bits.
- FixedU32with 23 integer bits and nine fractional bits.
- FixedU64with 23 integer bits and 41 fractional bits.
- FixedU128with 23 integer bits and 105 fractional bits.
- FixedU32with 24 integer bits and eight fractional bits.
- FixedU64with 24 integer bits and 40 fractional bits.
- FixedU128with 24 integer bits and 104 fractional bits.
- FixedU32with 25 integer bits and seven fractional bits.
- FixedU64with 25 integer bits and 39 fractional bits.
- FixedU128with 25 integer bits and 103 fractional bits.
- FixedU32with 26 integer bits and six fractional bits.
- FixedU64with 26 integer bits and 38 fractional bits.
- FixedU128with 26 integer bits and 102 fractional bits.
- FixedU32with 27 integer bits and five fractional bits.
- FixedU64with 27 integer bits and 37 fractional bits.
- FixedU128with 27 integer bits and 101 fractional bits.
- FixedU32with 28 integer bits and four fractional bits.
- FixedU64with 28 integer bits and 36 fractional bits.
- FixedU128with 28 integer bits and 100 fractional bits.
- FixedU32with 29 integer bits and three fractional bits.
- FixedU64with 29 integer bits and 35 fractional bits.
- FixedU128with 29 integer bits and 99 fractional bits.
- FixedU32with 30 integer bits and two fractional bits.
- FixedU64with 30 integer bits and 34 fractional bits.
- FixedU128with 30 integer bits and 98 fractional bits.
- FixedU32with 31 integer bits and one fractional bit.
- FixedU64with 31 integer bits and 33 fractional bits.
- FixedU128with 31 integer bits and 97 fractional bits.
- FixedU32with 32 integer bits and no fractional bits.
- FixedU64with 32 integer bits and 32 fractional bits.
- FixedU128with 32 integer bits and 96 fractional bits.
- FixedU64with 33 integer bits and 31 fractional bits.
- FixedU128with 33 integer bits and 95 fractional bits.
- FixedU64with 34 integer bits and 30 fractional bits.
- FixedU128with 34 integer bits and 94 fractional bits.
- FixedU64with 35 integer bits and 29 fractional bits.
- FixedU128with 35 integer bits and 93 fractional bits.
- FixedU64with 36 integer bits and 28 fractional bits.
- FixedU128with 36 integer bits and 92 fractional bits.
- FixedU64with 37 integer bits and 27 fractional bits.
- FixedU128with 37 integer bits and 91 fractional bits.
- FixedU64with 38 integer bits and 26 fractional bits.
- FixedU128with 38 integer bits and 90 fractional bits.
- FixedU64with 39 integer bits and 25 fractional bits.
- FixedU128with 39 integer bits and 89 fractional bits.
- FixedU64with 40 integer bits and 24 fractional bits.
- FixedU128with 40 integer bits and 88 fractional bits.
- FixedU64with 41 integer bits and 23 fractional bits.
- FixedU128with 41 integer bits and 87 fractional bits.
- FixedU64with 42 integer bits and 22 fractional bits.
- FixedU128with 42 integer bits and 86 fractional bits.
- FixedU64with 43 integer bits and 21 fractional bits.
- FixedU128with 43 integer bits and 85 fractional bits.
- FixedU64with 44 integer bits and 20 fractional bits.
- FixedU128with 44 integer bits and 84 fractional bits.
- FixedU64with 45 integer bits and 19 fractional bits.
- FixedU128with 45 integer bits and 83 fractional bits.
- FixedU64with 46 integer bits and 18 fractional bits.
- FixedU128with 46 integer bits and 82 fractional bits.
- FixedU64with 47 integer bits and 17 fractional bits.
- FixedU128with 47 integer bits and 81 fractional bits.
- FixedU64with 48 integer bits and 16 fractional bits.
- FixedU128with 48 integer bits and 80 fractional bits.
- FixedU64with 49 integer bits and 15 fractional bits.
- FixedU128with 49 integer bits and 79 fractional bits.
- FixedU64with 50 integer bits and 14 fractional bits.
- FixedU128with 50 integer bits and 78 fractional bits.
- FixedU64with 51 integer bits and 13 fractional bits.
- FixedU128with 51 integer bits and 77 fractional bits.
- FixedU64with 52 integer bits and 12 fractional bits.
- FixedU128with 52 integer bits and 76 fractional bits.
- FixedU64with 53 integer bits and 11 fractional bits.
- FixedU128with 53 integer bits and 75 fractional bits.
- FixedU64with 54 integer bits and 10 fractional bits.
- FixedU128with 54 integer bits and 74 fractional bits.
- FixedU64with 55 integer bits and nine fractional bits.
- FixedU128with 55 integer bits and 73 fractional bits.
- FixedU64with 56 integer bits and eight fractional bits.
- FixedU128with 56 integer bits and 72 fractional bits.
- FixedU64with 57 integer bits and seven fractional bits.
- FixedU128with 57 integer bits and 71 fractional bits.
- FixedU64with 58 integer bits and six fractional bits.
- FixedU128with 58 integer bits and 70 fractional bits.
- FixedU64with 59 integer bits and five fractional bits.
- FixedU128with 59 integer bits and 69 fractional bits.
- FixedU64with 60 integer bits and four fractional bits.
- FixedU128with 60 integer bits and 68 fractional bits.
- FixedU64with 61 integer bits and three fractional bits.
- FixedU128with 61 integer bits and 67 fractional bits.
- FixedU64with 62 integer bits and two fractional bits.
- FixedU128with 62 integer bits and 66 fractional bits.
- FixedU64with 63 integer bits and one fractional bit.
- FixedU128with 63 integer bits and 65 fractional bits.
- FixedU64with 64 integer bits and no fractional bits.
- FixedU128with 64 integer bits and 64 fractional bits.
- FixedU128with 65 integer bits and 63 fractional bits.
- FixedU128with 66 integer bits and 62 fractional bits.
- FixedU128with 67 integer bits and 61 fractional bits.
- FixedU128with 68 integer bits and 60 fractional bits.
- FixedU128with 69 integer bits and 59 fractional bits.
- FixedU128with 70 integer bits and 58 fractional bits.
- FixedU128with 71 integer bits and 57 fractional bits.
- FixedU128with 72 integer bits and 56 fractional bits.
- FixedU128with 73 integer bits and 55 fractional bits.
- FixedU128with 74 integer bits and 54 fractional bits.
- FixedU128with 75 integer bits and 53 fractional bits.
- FixedU128with 76 integer bits and 52 fractional bits.
- FixedU128with 77 integer bits and 51 fractional bits.
- FixedU128with 78 integer bits and 50 fractional bits.
- FixedU128with 79 integer bits and 49 fractional bits.
- FixedU128with 80 integer bits and 48 fractional bits.
- FixedU128with 81 integer bits and 47 fractional bits.
- FixedU128with 82 integer bits and 46 fractional bits.
- FixedU128with 83 integer bits and 45 fractional bits.
- FixedU128with 84 integer bits and 44 fractional bits.
- FixedU128with 85 integer bits and 43 fractional bits.
- FixedU128with 86 integer bits and 42 fractional bits.
- FixedU128with 87 integer bits and 41 fractional bits.
- FixedU128with 88 integer bits and 40 fractional bits.
- FixedU128with 89 integer bits and 39 fractional bits.
- FixedU128with 90 integer bits and 38 fractional bits.
- FixedU128with 91 integer bits and 37 fractional bits.
- FixedU128with 92 integer bits and 36 fractional bits.
- FixedU128with 93 integer bits and 35 fractional bits.
- FixedU128with 94 integer bits and 34 fractional bits.
- FixedU128with 95 integer bits and 33 fractional bits.
- FixedU128with 96 integer bits and 32 fractional bits.
- FixedU128with 97 integer bits and 31 fractional bits.
- FixedU128with 98 integer bits and 30 fractional bits.
- FixedU128with 99 integer bits and 29 fractional bits.
- FixedU128with 100 integer bits and 28 fractional bits.
- FixedU128with 101 integer bits and 27 fractional bits.
- FixedU128with 102 integer bits and 26 fractional bits.
- FixedU128with 103 integer bits and 25 fractional bits.
- FixedU128with 104 integer bits and 24 fractional bits.
- FixedU128with 105 integer bits and 23 fractional bits.
- FixedU128with 106 integer bits and 22 fractional bits.
- FixedU128with 107 integer bits and 21 fractional bits.
- FixedU128with 108 integer bits and 20 fractional bits.
- FixedU128with 109 integer bits and 19 fractional bits.
- FixedU128with 110 integer bits and 18 fractional bits.
- FixedU128with 111 integer bits and 17 fractional bits.
- FixedU128with 112 integer bits and 16 fractional bits.
- FixedU128with 113 integer bits and 15 fractional bits.
- FixedU128with 114 integer bits and 14 fractional bits.
- FixedU128with 115 integer bits and 13 fractional bits.
- FixedU128with 116 integer bits and 12 fractional bits.
- FixedU128with 117 integer bits and 11 fractional bits.
- FixedU128with 118 integer bits and 10 fractional bits.
- FixedU128with 119 integer bits and nine fractional bits.
- FixedU128with 120 integer bits and eight fractional bits.
- FixedU128with 121 integer bits and seven fractional bits.
- FixedU128with 122 integer bits and six fractional bits.
- FixedU128with 123 integer bits and five fractional bits.
- FixedU128with 124 integer bits and four fractional bits.
- FixedU128with 125 integer bits and three fractional bits.
- FixedU128with 126 integer bits and two fractional bits.
- FixedU128with 127 integer bits and one fractional bit.
- FixedU128with 128 integer bits and no fractional bits.