I am currently having problems achieving the desired rounding of numbers with knitr. The problem arises with numbers that end with zero in the last rounded digit. An example of this is 14.04, which I want to round in 1 decimal place to 14.0. The problem is that knitrwith latex, since the output gives 14 without 0 as a decimal place.
I would suggest that there is some kind of final null parameter, but I cannot find it. Any ideas? Below is a small minimal working example of a problem.
\documentclass[12pt]{article}
\begin{document}
<<>>=
library(knitr)
options(digits=1)
@
Full number = 14.0417
Number of issue \Sexpr{14.041783}
Should appear as 14.0
\end{document}
EDIT: ( ), , . , , , , "" , .
, : , 100 400 000. options(digits=2) 10^8, 1.04 x 10^8. Rnw .
\documentclass[12pt]{article}
\begin{document}
<<>>=
library(knitr)
options(digits=2)
@
Number 100,400,000
\Sexpr{100400000}
\end{document}