55 const char* c = ratio_str.c_str();
57 if (digit >= 0 && digit <= 9)
62 while (digit >= 0 && digit <= 9)
64 int_part = int_part * 10 + digit;
83 if (digit >= 0 && digit <= 9)
89 while (digit >= 0 && digit <= 9)
91 frac_part = frac_part * 10 + digit;
100 real128::operator std::string()
const
102 std::stringstream ss;
106 ss << std::string( frac ).substr(1);
108 auto number = ss.str();
109 while( number.back() ==
'0' ) number.pop_back();
117 result.fixed = fixed;
123 vo = std::string(var);
real128(uint64_t integer=0)
real128 & operator*=(const real128 &o)
real128 & operator+=(const real128 &o)
real128 & operator-=(const real128 &o)
real128 & operator/=(const real128 &o)
static real128 from_fixed(const uint128 &fixed)
uint64_t to_uint64() const
an implementation of 128 bit unsigned integer
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Defines exception's used by fc.
#define FC_CAPTURE_AND_RETHROW(...)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
#define FC_REAL128_PRECISION
unsigned __int64 uint64_t