Module std::uq64_64
Defines an unsigned, fixed-point numeric type with a 64-bit integer part and a 64-bit fractional part. The notation
uq64_64 and UQ64_64 is based on
Q notation. q indicates it a fixed-point
number. The u prefix indicates it is unsigned. The 64_64 suffix indicates the number of
bits, where the first number indicates the number of bits in the integer part, and the second
the number of bits in the fractional part--in this case 64 bits for each.
- Struct UQ64_64
- Constants
- Function from_quotient
- Function from_int
- Function add
- Function sub
- Function mul
- Function div
- Function to_int
- Function int_mul
- Function int_div
- Function le
- Function lt
- Function ge
- Function gt
- Function to_raw
- Function from_raw
Struct UQ64_64
A fixed-point numeric type with 64 integer bits and 64 fractional bits, represented by an underlying 128 bit value. This is a binary representation, so decimal values may not be exactly representable, but it provides more than 19 decimal digits of precision both before and after the decimal point (38 digits total).
public struct UQ64_64 has copy, drop, store
Click to open
Fields
-
0: u128