CppCommon  1.0.4.1
C++ Common Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
common_uint256.cpp

Unsigned 256-bit integer type example

#include "common/uint256.h"
#include <iostream>
int main(int argc, char** argv)
{
CppCommon::uint256_t a(0xFEDBCA9876543210ull);
CppCommon::uint256_t b(0ull, 0ull, 0xFEDBCA9876543210ull, 0xFEDBCA9876543210ull);
std::cout << a << " * " << b << " = " << (a * b) << std::endl;
std::cout << b << " / " << a << " = " << (b / a) << std::endl;
return 0;
}
Unsigned 256-bit integer type.
Definition: uint256.h:21
Unsigned 256-bit integer type definition.