Skip to content

Commit b0c6ddd

Browse files
committed
Mention sig_figs in Stan CSV file format doc
1 parent 3a69742 commit b0c6ddd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cmdstan-guide/command_line_options.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the executable exits with the following message:
5757
Exception: variable does not exist; processing stage=data initialization; variable name=y; base type=int (in 'examples/bernoulli/bernoulli.stan', line 3, column 2 to column 28)
5858
```
5959

60-
## Output control arguments
60+
## Output control arguments {#output-control.section}
6161

6262
The `output` keyword is used to specify non-default options for
6363
output files and messages written to the terminal window.

src/cmdstan-guide/stan_csv_apdx.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ For the Stan CSV files, data is strictly numerical,
1313
however, possible values include both positive and negative
1414
infinity and "Not-a-Number" which are represented as
1515
the strings `NaN`, `inf`, `+inf`, `-inf`.
16-
All other values are written in decimal notation with
17-
at most 6 digits of precision.
16+
All other values are written in decimal notation by default with
17+
at most 6 digits of precision. The number of significant digits
18+
written can be controlled with argument `sig_figs=<int>`. See more
19+
in [Output control arguments section](command_line_options.qmd).
1820

1921
Stan CSV files have a header row containing the column names.
2022
They also make extensive use of CSV comments,

0 commit comments

Comments
 (0)