An open API service indexing awesome lists of open source software.

https://github.com/pontem-network/uq64x64

UQ64x64
https://github.com/pontem-network/uq64x64

Last synced: about 2 months ago
JSON representation

UQ64x64

Awesome Lists containing this project

README

        

## UQ64x64

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

Similar one used in [Uniswap](https://github.com/Uniswap/v2-core/blob/master/contracts/libraries/UQ112x112.sol) v2 core.

## Compile

aptos move compile

## Test

aptos move test

## Add as dependency

Add to `Move.toml`:

```toml
[dependencies.UQ64x64]
git = "https://github.com/pontem-network/UQ64x64.git"
rev = "v0.3.8"
```

And then use in code:

```move
use uq64x64::uq64x64;
...
let uq = uq64x64::encode(10);
```

## LICENSE

MIT.