Skip to content

Commit fe5f556

Browse files
Merge pull request #819 from stan-dev/functions-reference/link-to-to_int
Link to to_int from rounding functions section
2 parents c2180ce + 675eb98 commit fe5f556

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/functions-reference/real-valued_basic_functions.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,10 @@ calculations, but the result is likely to be reduced acceptance
783783
probabilities and less efficient sampling.
784784

785785
The rounding functions cannot be used as indices to arrays because
786-
they return real values. Stan may introduce integer-valued versions
787-
of these in the future, but as of now, there is no good workaround.
786+
they return real values. For operations over `data` or in the
787+
`generated quantities` block, the
788+
[`to_int()` function](integer-valued_basic_functions.qmd#casting-functions)
789+
can be used.
788790

789791
<!-- R; floor; (T x); -->
790792
\index{{\tt \bfseries floor }!{\tt (T x): R}|hyperpage}

0 commit comments

Comments
 (0)