Module cfg_types::fixed_point

source ·
Expand description

Decimal Fixed Point implementations for Substrate runtime. Copied over from sp_arithmetic

Structs§

  • A fixed point number representation in the range. _Fixed Point 128 bits unsigned with variable precision.

Traits§

Type Aliases§

  • A fixed point number representation with 18 decimals. Used for representing a quantity of something. _Fixed Point 128 bits unsigned with 18 decimals precision
  • A fixed point number representation with 27 decimals. Used for representing a rate, mostly interest rate. _Fixed Point 128 bits unsigned with 27 decimals precision
  • A fixed point number representation with 18 decimals. Used for representing a ratio between two things. _Fixed Point 128 bits unsigned with 18 decimals precision