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 =
Frac
fractional 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 with
Frac
fractional bits. - A 16-bit signed number with
Frac
fractional bits. - A 32-bit signed number with
Frac
fractional bits. - An eight-bit unsigned number with
Frac
fractional bits. - A 16-bit unsigned number with
Frac
fractional bits. - A 32-bit unsigned number with
Frac
fractional bits.
Type Definitions
FixedI8
with no integer bits and eight fractional bits.FixedI16
with no integer bits and 16 fractional bits.FixedI32
with no integer bits and 32 fractional bits.FixedI64
with no integer bits and 64 fractional bits.FixedI128
with no integer bits and 128 fractional bits.FixedI8
with one integer bit and seven fractional bits.FixedI16
with one integer bit and 15 fractional bits.FixedI32
with one integer bit and 31 fractional bits.FixedI64
with one integer bit and 63 fractional bits.FixedI128
with one integer bit and 127 fractional bits.FixedI8
with two integer bits and six fractional bits.FixedI16
with two integer bits and 14 fractional bits.FixedI32
with two integer bits and 30 fractional bits.FixedI64
with two integer bits and 62 fractional bits.FixedI128
with two integer bits and 126 fractional bits.FixedI8
with three integer bits and five fractional bits.FixedI16
with three integer bits and 13 fractional bits.FixedI32
with three integer bits and 29 fractional bits.FixedI64
with three integer bits and 61 fractional bits.FixedI128
with three integer bits and 125 fractional bits.FixedI8
with four integer bits and four fractional bits.FixedI16
with four integer bits and 12 fractional bits.FixedI32
with four integer bits and 28 fractional bits.FixedI64
with four integer bits and 60 fractional bits.FixedI128
with four integer bits and 124 fractional bits.FixedI8
with five integer bits and three fractional bits.FixedI16
with five integer bits and 11 fractional bits.FixedI32
with five integer bits and 27 fractional bits.FixedI64
with five integer bits and 59 fractional bits.FixedI128
with five integer bits and 123 fractional bits.FixedI8
with six integer bits and two fractional bits.FixedI16
with six integer bits and 10 fractional bits.FixedI32
with six integer bits and 26 fractional bits.FixedI64
with six integer bits and 58 fractional bits.FixedI128
with six integer bits and 122 fractional bits.FixedI8
with seven integer bits and one fractional bit.FixedI16
with seven integer bits and nine fractional bits.FixedI32
with seven integer bits and 25 fractional bits.FixedI64
with seven integer bits and 57 fractional bits.FixedI128
with seven integer bits and 121 fractional bits.FixedI8
with eight integer bits and no fractional bits.FixedI16
with eight integer bits and eight fractional bits.FixedI32
with eight integer bits and 24 fractional bits.FixedI64
with eight integer bits and 56 fractional bits.FixedI128
with eight integer bits and 120 fractional bits.FixedI16
with nine integer bits and seven fractional bits.FixedI32
with nine integer bits and 23 fractional bits.FixedI64
with nine integer bits and 55 fractional bits.FixedI128
with nine integer bits and 119 fractional bits.FixedI16
with 10 integer bits and six fractional bits.FixedI32
with 10 integer bits and 22 fractional bits.FixedI64
with 10 integer bits and 54 fractional bits.FixedI128
with 10 integer bits and 118 fractional bits.FixedI16
with 11 integer bits and five fractional bits.FixedI32
with 11 integer bits and 21 fractional bits.FixedI64
with 11 integer bits and 53 fractional bits.FixedI128
with 11 integer bits and 117 fractional bits.FixedI16
with 12 integer bits and four fractional bits.FixedI32
with 12 integer bits and 20 fractional bits.FixedI64
with 12 integer bits and 52 fractional bits.FixedI128
with 12 integer bits and 116 fractional bits.FixedI16
with 13 integer bits and three fractional bits.FixedI32
with 13 integer bits and 19 fractional bits.FixedI64
with 13 integer bits and 51 fractional bits.FixedI128
with 13 integer bits and 115 fractional bits.FixedI16
with 14 integer bits and two fractional bits.FixedI32
with 14 integer bits and 18 fractional bits.FixedI64
with 14 integer bits and 50 fractional bits.FixedI128
with 14 integer bits and 114 fractional bits.FixedI16
with 15 integer bits and one fractional bit.FixedI32
with 15 integer bits and 17 fractional bits.FixedI64
with 15 integer bits and 49 fractional bits.FixedI128
with 15 integer bits and 113 fractional bits.FixedI16
with 16 integer bits and no fractional bits.FixedI32
with 16 integer bits and 16 fractional bits.FixedI64
with 16 integer bits and 48 fractional bits.FixedI128
with 16 integer bits and 112 fractional bits.FixedI32
with 17 integer bits and 15 fractional bits.FixedI64
with 17 integer bits and 47 fractional bits.FixedI128
with 17 integer bits and 111 fractional bits.FixedI32
with 18 integer bits and 14 fractional bits.FixedI64
with 18 integer bits and 46 fractional bits.FixedI128
with 18 integer bits and 110 fractional bits.FixedI32
with 19 integer bits and 13 fractional bits.FixedI64
with 19 integer bits and 45 fractional bits.FixedI128
with 19 integer bits and 109 fractional bits.FixedI32
with 20 integer bits and 12 fractional bits.FixedI64
with 20 integer bits and 44 fractional bits.FixedI128
with 20 integer bits and 108 fractional bits.FixedI32
with 21 integer bits and 11 fractional bits.FixedI64
with 21 integer bits and 43 fractional bits.FixedI128
with 21 integer bits and 107 fractional bits.FixedI32
with 22 integer bits and 10 fractional bits.FixedI64
with 22 integer bits and 42 fractional bits.FixedI128
with 22 integer bits and 106 fractional bits.FixedI32
with 23 integer bits and nine fractional bits.FixedI64
with 23 integer bits and 41 fractional bits.FixedI128
with 23 integer bits and 105 fractional bits.FixedI32
with 24 integer bits and eight fractional bits.FixedI64
with 24 integer bits and 40 fractional bits.FixedI128
with 24 integer bits and 104 fractional bits.FixedI32
with 25 integer bits and seven fractional bits.FixedI64
with 25 integer bits and 39 fractional bits.FixedI128
with 25 integer bits and 103 fractional bits.FixedI32
with 26 integer bits and six fractional bits.FixedI64
with 26 integer bits and 38 fractional bits.FixedI128
with 26 integer bits and 102 fractional bits.FixedI32
with 27 integer bits and five fractional bits.FixedI64
with 27 integer bits and 37 fractional bits.FixedI128
with 27 integer bits and 101 fractional bits.FixedI32
with 28 integer bits and four fractional bits.FixedI64
with 28 integer bits and 36 fractional bits.FixedI128
with 28 integer bits and 100 fractional bits.FixedI32
with 29 integer bits and three fractional bits.FixedI64
with 29 integer bits and 35 fractional bits.FixedI128
with 29 integer bits and 99 fractional bits.FixedI32
with 30 integer bits and two fractional bits.FixedI64
with 30 integer bits and 34 fractional bits.FixedI128
with 30 integer bits and 98 fractional bits.FixedI32
with 31 integer bits and one fractional bit.FixedI64
with 31 integer bits and 33 fractional bits.FixedI128
with 31 integer bits and 97 fractional bits.FixedI32
with 32 integer bits and no fractional bits.FixedI64
with 32 integer bits and 32 fractional bits.FixedI128
with 32 integer bits and 96 fractional bits.FixedI64
with 33 integer bits and 31 fractional bits.FixedI128
with 33 integer bits and 95 fractional bits.FixedI64
with 34 integer bits and 30 fractional bits.FixedI128
with 34 integer bits and 94 fractional bits.FixedI64
with 35 integer bits and 29 fractional bits.FixedI128
with 35 integer bits and 93 fractional bits.FixedI64
with 36 integer bits and 28 fractional bits.FixedI128
with 36 integer bits and 92 fractional bits.FixedI64
with 37 integer bits and 27 fractional bits.FixedI128
with 37 integer bits and 91 fractional bits.FixedI64
with 38 integer bits and 26 fractional bits.FixedI128
with 38 integer bits and 90 fractional bits.FixedI64
with 39 integer bits and 25 fractional bits.FixedI128
with 39 integer bits and 89 fractional bits.FixedI64
with 40 integer bits and 24 fractional bits.FixedI128
with 40 integer bits and 88 fractional bits.FixedI64
with 41 integer bits and 23 fractional bits.FixedI128
with 41 integer bits and 87 fractional bits.FixedI64
with 42 integer bits and 22 fractional bits.FixedI128
with 42 integer bits and 86 fractional bits.FixedI64
with 43 integer bits and 21 fractional bits.FixedI128
with 43 integer bits and 85 fractional bits.FixedI64
with 44 integer bits and 20 fractional bits.FixedI128
with 44 integer bits and 84 fractional bits.FixedI64
with 45 integer bits and 19 fractional bits.FixedI128
with 45 integer bits and 83 fractional bits.FixedI64
with 46 integer bits and 18 fractional bits.FixedI128
with 46 integer bits and 82 fractional bits.FixedI64
with 47 integer bits and 17 fractional bits.FixedI128
with 47 integer bits and 81 fractional bits.FixedI64
with 48 integer bits and 16 fractional bits.FixedI128
with 48 integer bits and 80 fractional bits.FixedI64
with 49 integer bits and 15 fractional bits.FixedI128
with 49 integer bits and 79 fractional bits.FixedI64
with 50 integer bits and 14 fractional bits.FixedI128
with 50 integer bits and 78 fractional bits.FixedI64
with 51 integer bits and 13 fractional bits.FixedI128
with 51 integer bits and 77 fractional bits.FixedI64
with 52 integer bits and 12 fractional bits.FixedI128
with 52 integer bits and 76 fractional bits.FixedI64
with 53 integer bits and 11 fractional bits.FixedI128
with 53 integer bits and 75 fractional bits.FixedI64
with 54 integer bits and 10 fractional bits.FixedI128
with 54 integer bits and 74 fractional bits.FixedI64
with 55 integer bits and nine fractional bits.FixedI128
with 55 integer bits and 73 fractional bits.FixedI64
with 56 integer bits and eight fractional bits.FixedI128
with 56 integer bits and 72 fractional bits.FixedI64
with 57 integer bits and seven fractional bits.FixedI128
with 57 integer bits and 71 fractional bits.FixedI64
with 58 integer bits and six fractional bits.FixedI128
with 58 integer bits and 70 fractional bits.FixedI64
with 59 integer bits and five fractional bits.FixedI128
with 59 integer bits and 69 fractional bits.FixedI64
with 60 integer bits and four fractional bits.FixedI128
with 60 integer bits and 68 fractional bits.FixedI64
with 61 integer bits and three fractional bits.FixedI128
with 61 integer bits and 67 fractional bits.FixedI64
with 62 integer bits and two fractional bits.FixedI128
with 62 integer bits and 66 fractional bits.FixedI64
with 63 integer bits and one fractional bit.FixedI128
with 63 integer bits and 65 fractional bits.FixedI64
with 64 integer bits and no fractional bits.FixedI128
with 64 integer bits and 64 fractional bits.FixedI128
with 65 integer bits and 63 fractional bits.FixedI128
with 66 integer bits and 62 fractional bits.FixedI128
with 67 integer bits and 61 fractional bits.FixedI128
with 68 integer bits and 60 fractional bits.FixedI128
with 69 integer bits and 59 fractional bits.FixedI128
with 70 integer bits and 58 fractional bits.FixedI128
with 71 integer bits and 57 fractional bits.FixedI128
with 72 integer bits and 56 fractional bits.FixedI128
with 73 integer bits and 55 fractional bits.FixedI128
with 74 integer bits and 54 fractional bits.FixedI128
with 75 integer bits and 53 fractional bits.FixedI128
with 76 integer bits and 52 fractional bits.FixedI128
with 77 integer bits and 51 fractional bits.FixedI128
with 78 integer bits and 50 fractional bits.FixedI128
with 79 integer bits and 49 fractional bits.FixedI128
with 80 integer bits and 48 fractional bits.FixedI128
with 81 integer bits and 47 fractional bits.FixedI128
with 82 integer bits and 46 fractional bits.FixedI128
with 83 integer bits and 45 fractional bits.FixedI128
with 84 integer bits and 44 fractional bits.FixedI128
with 85 integer bits and 43 fractional bits.FixedI128
with 86 integer bits and 42 fractional bits.FixedI128
with 87 integer bits and 41 fractional bits.FixedI128
with 88 integer bits and 40 fractional bits.FixedI128
with 89 integer bits and 39 fractional bits.FixedI128
with 90 integer bits and 38 fractional bits.FixedI128
with 91 integer bits and 37 fractional bits.FixedI128
with 92 integer bits and 36 fractional bits.FixedI128
with 93 integer bits and 35 fractional bits.FixedI128
with 94 integer bits and 34 fractional bits.FixedI128
with 95 integer bits and 33 fractional bits.FixedI128
with 96 integer bits and 32 fractional bits.FixedI128
with 97 integer bits and 31 fractional bits.FixedI128
with 98 integer bits and 30 fractional bits.FixedI128
with 99 integer bits and 29 fractional bits.FixedI128
with 100 integer bits and 28 fractional bits.FixedI128
with 101 integer bits and 27 fractional bits.FixedI128
with 102 integer bits and 26 fractional bits.FixedI128
with 103 integer bits and 25 fractional bits.FixedI128
with 104 integer bits and 24 fractional bits.FixedI128
with 105 integer bits and 23 fractional bits.FixedI128
with 106 integer bits and 22 fractional bits.FixedI128
with 107 integer bits and 21 fractional bits.FixedI128
with 108 integer bits and 20 fractional bits.FixedI128
with 109 integer bits and 19 fractional bits.FixedI128
with 110 integer bits and 18 fractional bits.FixedI128
with 111 integer bits and 17 fractional bits.FixedI128
with 112 integer bits and 16 fractional bits.FixedI128
with 113 integer bits and 15 fractional bits.FixedI128
with 114 integer bits and 14 fractional bits.FixedI128
with 115 integer bits and 13 fractional bits.FixedI128
with 116 integer bits and 12 fractional bits.FixedI128
with 117 integer bits and 11 fractional bits.FixedI128
with 118 integer bits and 10 fractional bits.FixedI128
with 119 integer bits and nine fractional bits.FixedI128
with 120 integer bits and eight fractional bits.FixedI128
with 121 integer bits and seven fractional bits.FixedI128
with 122 integer bits and six fractional bits.FixedI128
with 123 integer bits and five fractional bits.FixedI128
with 124 integer bits and four fractional bits.FixedI128
with 125 integer bits and three fractional bits.FixedI128
with 126 integer bits and two fractional bits.FixedI128
with 127 integer bits and one fractional bit.FixedI128
with 128 integer bits and no fractional bits.FixedU8
with no integer bits and eight fractional bits.FixedU16
with no integer bits and 16 fractional bits.FixedU32
with no integer bits and 32 fractional bits.FixedU64
with no integer bits and 64 fractional bits.FixedU128
with no integer bits and 128 fractional bits.FixedU8
with one integer bit and seven fractional bits.FixedU16
with one integer bit and 15 fractional bits.FixedU32
with one integer bit and 31 fractional bits.FixedU64
with one integer bit and 63 fractional bits.FixedU128
with one integer bit and 127 fractional bits.FixedU8
with two integer bits and six fractional bits.FixedU16
with two integer bits and 14 fractional bits.FixedU32
with two integer bits and 30 fractional bits.FixedU64
with two integer bits and 62 fractional bits.FixedU128
with two integer bits and 126 fractional bits.FixedU8
with three integer bits and five fractional bits.FixedU16
with three integer bits and 13 fractional bits.FixedU32
with three integer bits and 29 fractional bits.FixedU64
with three integer bits and 61 fractional bits.FixedU128
with three integer bits and 125 fractional bits.FixedU8
with four integer bits and four fractional bits.FixedU16
with four integer bits and 12 fractional bits.FixedU32
with four integer bits and 28 fractional bits.FixedU64
with four integer bits and 60 fractional bits.FixedU128
with four integer bits and 124 fractional bits.FixedU8
with five integer bits and three fractional bits.FixedU16
with five integer bits and 11 fractional bits.FixedU32
with five integer bits and 27 fractional bits.FixedU64
with five integer bits and 59 fractional bits.FixedU128
with five integer bits and 123 fractional bits.FixedU8
with six integer bits and two fractional bits.FixedU16
with six integer bits and 10 fractional bits.FixedU32
with six integer bits and 26 fractional bits.FixedU64
with six integer bits and 58 fractional bits.FixedU128
with six integer bits and 122 fractional bits.FixedU8
with seven integer bits and one fractional bit.FixedU16
with seven integer bits and nine fractional bits.FixedU32
with seven integer bits and 25 fractional bits.FixedU64
with seven integer bits and 57 fractional bits.FixedU128
with seven integer bits and 121 fractional bits.FixedU8
with eight integer bits and no fractional bits.FixedU16
with eight integer bits and eight fractional bits.FixedU32
with eight integer bits and 24 fractional bits.FixedU64
with eight integer bits and 56 fractional bits.FixedU128
with eight integer bits and 120 fractional bits.FixedU16
with nine integer bits and seven fractional bits.FixedU32
with nine integer bits and 23 fractional bits.FixedU64
with nine integer bits and 55 fractional bits.FixedU128
with nine integer bits and 119 fractional bits.FixedU16
with 10 integer bits and six fractional bits.FixedU32
with 10 integer bits and 22 fractional bits.FixedU64
with 10 integer bits and 54 fractional bits.FixedU128
with 10 integer bits and 118 fractional bits.FixedU16
with 11 integer bits and five fractional bits.FixedU32
with 11 integer bits and 21 fractional bits.FixedU64
with 11 integer bits and 53 fractional bits.FixedU128
with 11 integer bits and 117 fractional bits.FixedU16
with 12 integer bits and four fractional bits.FixedU32
with 12 integer bits and 20 fractional bits.FixedU64
with 12 integer bits and 52 fractional bits.FixedU128
with 12 integer bits and 116 fractional bits.FixedU16
with 13 integer bits and three fractional bits.FixedU32
with 13 integer bits and 19 fractional bits.FixedU64
with 13 integer bits and 51 fractional bits.FixedU128
with 13 integer bits and 115 fractional bits.FixedU16
with 14 integer bits and two fractional bits.FixedU32
with 14 integer bits and 18 fractional bits.FixedU64
with 14 integer bits and 50 fractional bits.FixedU128
with 14 integer bits and 114 fractional bits.FixedU16
with 15 integer bits and one fractional bit.FixedU32
with 15 integer bits and 17 fractional bits.FixedU64
with 15 integer bits and 49 fractional bits.FixedU128
with 15 integer bits and 113 fractional bits.FixedU16
with 16 integer bits and no fractional bits.FixedU32
with 16 integer bits and 16 fractional bits.FixedU64
with 16 integer bits and 48 fractional bits.FixedU128
with 16 integer bits and 112 fractional bits.FixedU32
with 17 integer bits and 15 fractional bits.FixedU64
with 17 integer bits and 47 fractional bits.FixedU128
with 17 integer bits and 111 fractional bits.FixedU32
with 18 integer bits and 14 fractional bits.FixedU64
with 18 integer bits and 46 fractional bits.FixedU128
with 18 integer bits and 110 fractional bits.FixedU32
with 19 integer bits and 13 fractional bits.FixedU64
with 19 integer bits and 45 fractional bits.FixedU128
with 19 integer bits and 109 fractional bits.FixedU32
with 20 integer bits and 12 fractional bits.FixedU64
with 20 integer bits and 44 fractional bits.FixedU128
with 20 integer bits and 108 fractional bits.FixedU32
with 21 integer bits and 11 fractional bits.FixedU64
with 21 integer bits and 43 fractional bits.FixedU128
with 21 integer bits and 107 fractional bits.FixedU32
with 22 integer bits and 10 fractional bits.FixedU64
with 22 integer bits and 42 fractional bits.FixedU128
with 22 integer bits and 106 fractional bits.FixedU32
with 23 integer bits and nine fractional bits.FixedU64
with 23 integer bits and 41 fractional bits.FixedU128
with 23 integer bits and 105 fractional bits.FixedU32
with 24 integer bits and eight fractional bits.FixedU64
with 24 integer bits and 40 fractional bits.FixedU128
with 24 integer bits and 104 fractional bits.FixedU32
with 25 integer bits and seven fractional bits.FixedU64
with 25 integer bits and 39 fractional bits.FixedU128
with 25 integer bits and 103 fractional bits.FixedU32
with 26 integer bits and six fractional bits.FixedU64
with 26 integer bits and 38 fractional bits.FixedU128
with 26 integer bits and 102 fractional bits.FixedU32
with 27 integer bits and five fractional bits.FixedU64
with 27 integer bits and 37 fractional bits.FixedU128
with 27 integer bits and 101 fractional bits.FixedU32
with 28 integer bits and four fractional bits.FixedU64
with 28 integer bits and 36 fractional bits.FixedU128
with 28 integer bits and 100 fractional bits.FixedU32
with 29 integer bits and three fractional bits.FixedU64
with 29 integer bits and 35 fractional bits.FixedU128
with 29 integer bits and 99 fractional bits.FixedU32
with 30 integer bits and two fractional bits.FixedU64
with 30 integer bits and 34 fractional bits.FixedU128
with 30 integer bits and 98 fractional bits.FixedU32
with 31 integer bits and one fractional bit.FixedU64
with 31 integer bits and 33 fractional bits.FixedU128
with 31 integer bits and 97 fractional bits.FixedU32
with 32 integer bits and no fractional bits.FixedU64
with 32 integer bits and 32 fractional bits.FixedU128
with 32 integer bits and 96 fractional bits.FixedU64
with 33 integer bits and 31 fractional bits.FixedU128
with 33 integer bits and 95 fractional bits.FixedU64
with 34 integer bits and 30 fractional bits.FixedU128
with 34 integer bits and 94 fractional bits.FixedU64
with 35 integer bits and 29 fractional bits.FixedU128
with 35 integer bits and 93 fractional bits.FixedU64
with 36 integer bits and 28 fractional bits.FixedU128
with 36 integer bits and 92 fractional bits.FixedU64
with 37 integer bits and 27 fractional bits.FixedU128
with 37 integer bits and 91 fractional bits.FixedU64
with 38 integer bits and 26 fractional bits.FixedU128
with 38 integer bits and 90 fractional bits.FixedU64
with 39 integer bits and 25 fractional bits.FixedU128
with 39 integer bits and 89 fractional bits.FixedU64
with 40 integer bits and 24 fractional bits.FixedU128
with 40 integer bits and 88 fractional bits.FixedU64
with 41 integer bits and 23 fractional bits.FixedU128
with 41 integer bits and 87 fractional bits.FixedU64
with 42 integer bits and 22 fractional bits.FixedU128
with 42 integer bits and 86 fractional bits.FixedU64
with 43 integer bits and 21 fractional bits.FixedU128
with 43 integer bits and 85 fractional bits.FixedU64
with 44 integer bits and 20 fractional bits.FixedU128
with 44 integer bits and 84 fractional bits.FixedU64
with 45 integer bits and 19 fractional bits.FixedU128
with 45 integer bits and 83 fractional bits.FixedU64
with 46 integer bits and 18 fractional bits.FixedU128
with 46 integer bits and 82 fractional bits.FixedU64
with 47 integer bits and 17 fractional bits.FixedU128
with 47 integer bits and 81 fractional bits.FixedU64
with 48 integer bits and 16 fractional bits.FixedU128
with 48 integer bits and 80 fractional bits.FixedU64
with 49 integer bits and 15 fractional bits.FixedU128
with 49 integer bits and 79 fractional bits.FixedU64
with 50 integer bits and 14 fractional bits.FixedU128
with 50 integer bits and 78 fractional bits.FixedU64
with 51 integer bits and 13 fractional bits.FixedU128
with 51 integer bits and 77 fractional bits.FixedU64
with 52 integer bits and 12 fractional bits.FixedU128
with 52 integer bits and 76 fractional bits.FixedU64
with 53 integer bits and 11 fractional bits.FixedU128
with 53 integer bits and 75 fractional bits.FixedU64
with 54 integer bits and 10 fractional bits.FixedU128
with 54 integer bits and 74 fractional bits.FixedU64
with 55 integer bits and nine fractional bits.FixedU128
with 55 integer bits and 73 fractional bits.FixedU64
with 56 integer bits and eight fractional bits.FixedU128
with 56 integer bits and 72 fractional bits.FixedU64
with 57 integer bits and seven fractional bits.FixedU128
with 57 integer bits and 71 fractional bits.FixedU64
with 58 integer bits and six fractional bits.FixedU128
with 58 integer bits and 70 fractional bits.FixedU64
with 59 integer bits and five fractional bits.FixedU128
with 59 integer bits and 69 fractional bits.FixedU64
with 60 integer bits and four fractional bits.FixedU128
with 60 integer bits and 68 fractional bits.FixedU64
with 61 integer bits and three fractional bits.FixedU128
with 61 integer bits and 67 fractional bits.FixedU64
with 62 integer bits and two fractional bits.FixedU128
with 62 integer bits and 66 fractional bits.FixedU64
with 63 integer bits and one fractional bit.FixedU128
with 63 integer bits and 65 fractional bits.FixedU64
with 64 integer bits and no fractional bits.FixedU128
with 64 integer bits and 64 fractional bits.FixedU128
with 65 integer bits and 63 fractional bits.FixedU128
with 66 integer bits and 62 fractional bits.FixedU128
with 67 integer bits and 61 fractional bits.FixedU128
with 68 integer bits and 60 fractional bits.FixedU128
with 69 integer bits and 59 fractional bits.FixedU128
with 70 integer bits and 58 fractional bits.FixedU128
with 71 integer bits and 57 fractional bits.FixedU128
with 72 integer bits and 56 fractional bits.FixedU128
with 73 integer bits and 55 fractional bits.FixedU128
with 74 integer bits and 54 fractional bits.FixedU128
with 75 integer bits and 53 fractional bits.FixedU128
with 76 integer bits and 52 fractional bits.FixedU128
with 77 integer bits and 51 fractional bits.FixedU128
with 78 integer bits and 50 fractional bits.FixedU128
with 79 integer bits and 49 fractional bits.FixedU128
with 80 integer bits and 48 fractional bits.FixedU128
with 81 integer bits and 47 fractional bits.FixedU128
with 82 integer bits and 46 fractional bits.FixedU128
with 83 integer bits and 45 fractional bits.FixedU128
with 84 integer bits and 44 fractional bits.FixedU128
with 85 integer bits and 43 fractional bits.FixedU128
with 86 integer bits and 42 fractional bits.FixedU128
with 87 integer bits and 41 fractional bits.FixedU128
with 88 integer bits and 40 fractional bits.FixedU128
with 89 integer bits and 39 fractional bits.FixedU128
with 90 integer bits and 38 fractional bits.FixedU128
with 91 integer bits and 37 fractional bits.FixedU128
with 92 integer bits and 36 fractional bits.FixedU128
with 93 integer bits and 35 fractional bits.FixedU128
with 94 integer bits and 34 fractional bits.FixedU128
with 95 integer bits and 33 fractional bits.FixedU128
with 96 integer bits and 32 fractional bits.FixedU128
with 97 integer bits and 31 fractional bits.FixedU128
with 98 integer bits and 30 fractional bits.FixedU128
with 99 integer bits and 29 fractional bits.FixedU128
with 100 integer bits and 28 fractional bits.FixedU128
with 101 integer bits and 27 fractional bits.FixedU128
with 102 integer bits and 26 fractional bits.FixedU128
with 103 integer bits and 25 fractional bits.FixedU128
with 104 integer bits and 24 fractional bits.FixedU128
with 105 integer bits and 23 fractional bits.FixedU128
with 106 integer bits and 22 fractional bits.FixedU128
with 107 integer bits and 21 fractional bits.FixedU128
with 108 integer bits and 20 fractional bits.FixedU128
with 109 integer bits and 19 fractional bits.FixedU128
with 110 integer bits and 18 fractional bits.FixedU128
with 111 integer bits and 17 fractional bits.FixedU128
with 112 integer bits and 16 fractional bits.FixedU128
with 113 integer bits and 15 fractional bits.FixedU128
with 114 integer bits and 14 fractional bits.FixedU128
with 115 integer bits and 13 fractional bits.FixedU128
with 116 integer bits and 12 fractional bits.FixedU128
with 117 integer bits and 11 fractional bits.FixedU128
with 118 integer bits and 10 fractional bits.FixedU128
with 119 integer bits and nine fractional bits.FixedU128
with 120 integer bits and eight fractional bits.FixedU128
with 121 integer bits and seven fractional bits.FixedU128
with 122 integer bits and six fractional bits.FixedU128
with 123 integer bits and five fractional bits.FixedU128
with 124 integer bits and four fractional bits.FixedU128
with 125 integer bits and three fractional bits.FixedU128
with 126 integer bits and two fractional bits.FixedU128
with 127 integer bits and one fractional bit.FixedU128
with 128 integer bits and no fractional bits.