> ## Documentation Index
> Fetch the complete documentation index at: https://tspmo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Math.pmo

> Misc. relevant math functions that may be useful

### `neg` \[x: int, float] -> int

Returns negative x

### `abs` \[x: int, float] -> int

Returns the absolute value of x

### `pow` \[x: float] \[p: int >= 1] -> \[int, float]

Returns x to the p power

### `!` \[x: int] -> int

Returns the factorial of x

### `pi` -> float

pi.

### `floor` \[x: float] -> int

Round x down to the nearest int

### `ceil` \[x: float] -> int

Round x up to the nearest int

### `round`\[x: float] -> int

Round x to the nearest int

### `roundd`\[x: float, int] \[d: int] -> int

Round x tp the nearest 10^d

### `gcd` \[x: int] \[y: int] -> int

Returns the greatest common denominator of x and y

### `lcm` \[x: int] \[y: int] -> int

Returns the least common multiple of x and y
