Shows how to use xtd::bit_converter class.
#include <xtd/bit_converter>
#include <xtd/console>
auto main() -> int {
auto a_double = 0.1111111111111111111;
auto a_single = 0.1111111111111111111f;
auto a_long = 1111111111111111111_s64;
auto an_int = 1111111111;
auto a_short = 11111_u16;
auto a_char = '*';
auto a_bool = true;
"\ngenerates the following output.\n");
}
static xtd::string to_string(const xtd::array< xtd::byte > &value)
Converts the numeric value of each element of a specified xtd::array of bytes to its equivalent hexad...
static xtd::array< xtd::byte > get_bytes(bool value) noexcept
Returns the specified Boolean value as an xtd::array of bytes.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8