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

◆ double_object

using xtd::double_object = typedef box_floating_point<double>

Represent a boxed double.

Header
#include <xtd/double_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();};
double unboxed_object = 3.14;
double_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...
box_floating_point< double > double_object
Represent a boxed double.
Definition double_object.h:33