Skip to content

Commit 3828f35

Browse files
committed
Inline the example into the documentation
1 parent 575d4e8 commit 3828f35

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

doc/modules/ROOT/pages/financial_examples.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,22 @@ https://www.boost.org/LICENSE_1_0.txt
88
= Financial Examples
99
:idprefix: financial_examples_
1010

11-
== Financial Applications
11+
[#examples_money_parsing]
12+
.This example demonstrates the numerical differences between parsing of monetary values between using `decimal32_t` and `float`
13+
====
14+
[source, c++]
15+
----
16+
include::example$numerical_parsing.cpp[]
17+
----
18+
19+
.Expected Outcome
20+
....
21+
Number of data points: 252
22+
Sum from MS Excel: 52151.99
23+
Sum using decimal32_t: 52151.99
24+
Sum using float: 52151.96
25+
....
26+
====
1227
1328
=== Simple Moving Average
1429

0 commit comments

Comments
 (0)