Shows how to use format xtd::parse method with floating point values (float, double and decimal).
#include <xtd/console>
#include <xtd/parse>
using namespace std;
auto main()->int {
locale::global(locale("en_US.UTF-8"));
auto d3 =
xtd::parse<double>(
"1.234500e+01", number_styles::number | number_styles::allow_exponent);
try {
console::write_line(
"Exception : {}", e.
message());
}
}