Fixed Point

32,64,128,256 bits version of fixed point variables More...


Type Name
struct eosio::fixed_point32
32 bits representation of Fixed Point class.
struct eosio::fixed_point64
struct eosio::fixed_point128

Detailed Description

Floating point operations are indeterministic, hence is prevented in smart contract. The smart contract developers should use the appropriate Fixed_Point template class by passing the number to be represented in integer format and the number of decimals required. These template classes also support the arithmetic operations and basic comparison operators