Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 533 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 533 Bytes

UQ64x64

Implements fixed point numbers in Move language using the Q number format.

Similar one used in Uniswap v2 core.

Compile

aptos move compile

Test

aptos move test

Add as dependency

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);

LICENSE

MIT.