SignedSafeDecimalMath¶
Description¶
Source: contracts/SignedSafeDecimalMath.sol
Variables¶
PRECISE_UNIT
¶
Type: int256
UNIT
¶
Type: int256
decimals
¶
Type: uint8
highPrecisionDecimals
¶
Type: uint8
Views¶
preciseUnit
¶
Details
Signature
preciseUnit() pure returns (int256)
Visibility
external
State Mutability
pure
unit
¶
Details
Signature
unit() pure returns (int256)
Visibility
external
State Mutability
pure
Internal Functions¶
decimalToPreciseDecimal
¶
Details
Signature
decimalToPreciseDecimal(int256 i) pure returns (int256)
Visibility
internal
State Mutability
pure
divideDecimal
¶
Details
Signature
divideDecimal(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
divideDecimalRound
¶
Details
Signature
divideDecimalRound(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
divideDecimalRoundPrecise
¶
Details
Signature
divideDecimalRoundPrecise(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
multiplyDecimal
¶
Details
Signature
multiplyDecimal(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
multiplyDecimalRound
¶
Details
Signature
multiplyDecimalRound(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
multiplyDecimalRoundPrecise
¶
Details
Signature
multiplyDecimalRoundPrecise(int256 x, int256 y) pure returns (int256)
Visibility
internal
State Mutability
pure
preciseDecimalToDecimal
¶
Details
Signature
preciseDecimalToDecimal(int256 i) pure returns (int256)
Visibility
internal
State Mutability
pure