parsefloatingpoint

September 14, 2025 ยท View on GitHub

Shows how to use format xtd::parse method with floating point values (float, double and decimal).

Sources

  • src/parse_floating_point.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output (with colors)

12.345
12.345
12.345
inf
-inf
nan
Exception : invalid character found

Contents

  1. 1Sources
  2. 2Build and run