> For the complete documentation index, see [llms.txt](https://docs.dragonswap.app/dragonswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/periphery/libraries/hexstrings.md).

# HexStrings

## HexStrings

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#functions) <a href="#functions" id="functions"></a>

#### toHexString[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#tohexstring) <a href="#tohexstring" id="tohexstring"></a>

```solidity
  function toHexString(
  ) internal returns (string)
```

Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.

Credit to Open Zeppelin under MIT license <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/243adff49ce1700e0ecb99fe522fb16cff1d1ddc/contracts/utils/Strings.sol#L55>

#### toHexStringNoPrefix[​](https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings#tohexstringnoprefix) <a href="#tohexstringnoprefix" id="tohexstringnoprefix"></a>

```solidity
  function toHexStringNoPrefix(
  ) internal returns (string)
```
