# Utils

### getAdjustPrice

Rounds down price input to two significant digits to adjust it for strike price. Assumes 18 decimal places (e.g., ETH price 1500 as 1500 \* 10\*\*18).

```javascript
function getAdjustPrice(uint256 price) pure returns (uint256 adjustedPrice)
```

**Params:**

| **Name** | **Type** | **Description** |
| -------- | -------- | --------------- |
| price    | uint256  | The input price |

**Returns:**

| **Name**      | **Type** | **Description**    |
| ------------- | -------- | ------------------ |
| adjustedPrice | uint256  | The adjusted price |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.divergence-protocol.com/technical-reference/core/utils.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
