Implements fixed point numbers in Move language using the Q number format.
Similar one used in Uniswap v2 core.
aptos move compile
aptos move test
Add to Move.toml
:
[dependencies.UQ64x64]
git = "https://github.com/pontem-network/UQ64x64.git"
rev = "v0.3.8"
And then use in code:
use uq64x64::uq64x64;
...
let uq = uq64x64::encode(10);
MIT.