Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: October 8, 2021

Trident

Trident sqrt helper library.

Functions

sqrt

  function sqrt(
    uint256 x
  ) internal returns (uint256 result)

Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer number.

Adapted from https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol, 2019 ABDK Consulting, License-Identifier: BSD-4-Clause.

Parameters:

Name Type Description
x uint256 Unsigned 256-bit integer number.

Return Values:

Name Type Description
result uint256 Sqrt result.
Questions or feedback? You can discuss issues and obtain free support on Trident chat channel.
For SushiSwap community support, join the Discord Server None