@deepbook/core
math
- Move path
- 0x2c8d…4809::math
- Functions
- 149 public, 0 entry
- Structs
- 0
- Friend modules
- None
math
Functions14
- public fun div(u64, u64): u64
- public fun div_round_up(u64, u64): u64
- public fun div_u128(u128, u128): u128
- public fun is_power_of_ten(u64): bool
- public fun median(vector<u128>): u128
- public fun mul(u64, u64): u64
- public fun mul_round_up(u64, u64): u64
- public fun mul_u128(u128, u128): u128
- public fun sqrt(u64, u64): u64
Structs0
This module defines no structs
Constants5
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1000000000 | u64 | Value | sqrt |
| 1 | 1000000000 | u128 | Value | mediansqrtmul_internaldiv_internal |
| 2 | 1000000000 | u256 | Value | mul_internal_u128div_internal_u128 |
| 3 | 0 | u64 | Abort code | sqrt |
| 4 | 00 | vector<u128> | Value | quick_sort |