Decimal

Functions

zero

function zero() internal returns (struct Decimal.D256)

one

function one() internal returns (struct Decimal.D256)

from

function from(
    uint256 a
) internal returns (struct Decimal.D256)

Parameters

Name
Type
Description

a

uint256

ratio

function ratio(
    uint256 a,
    uint256 b
) internal returns (struct Decimal.D256)

Parameters

Name
Type
Description

a

uint256

b

uint256

add

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

sub

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

sub

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

reason

string

mul

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

div

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

pow

Parameters

Name
Type
Description

self

struct Decimal.D256

b

uint256

add

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

sub

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

sub

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

reason

string

mul

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

div

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

equals

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

greaterThan

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

lessThan

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

greaterThanOrEqualTo

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

lessThanOrEqualTo

Parameters

Name
Type
Description

self

struct Decimal.D256

b

struct Decimal.D256

isZero

Parameters

Name
Type
Description

self

struct Decimal.D256

asUint256

Parameters

Name
Type
Description

self

struct Decimal.D256

getPartial

Parameters

Name
Type
Description

target

uint256

numerator

uint256

denominator

uint256

compareTo

Parameters

Name
Type
Description

a

struct Decimal.D256

b

struct Decimal.D256

Last updated