xtd 0.2.0
Loading...
Searching...
No Matches

◆ decimal_object

Represent a boxed decimal.

Header
#include <xtd/decimal_object>
Namespace
xtd
Library
xtd.core
Remarks
For more information about types, see Native types, boxing and unboxing.
Examples
The following example shows how to create and use xtd::double_object.
auto stringer = [](const object& value) {return value.to_string();};
decimal unboxed_object = 3.14;
decimal_object boxed_object = unboxed_object;
auto result = stringer(boxed_object);
console::write_line("result = {}", result); // Display: result = 3.14;
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.h:23
box_floating_point< decimal > decimal_object
Represent a boxed decimal.
Definition decimal_object.h:33