View source: R/formatScientificTeX.R
formatScientificTeX | R Documentation |
Format a number in standard scientific format XXX.XXEXXX into a string that can be typeset by LaTeX
formatScientificTeX(x, width, digits)
x |
The number to be formatted. This number does not need to be in scientific format. |
width |
|
digits |
See |
If x = 300.123
, width = 4
and digits = 1
, then this
function will return " 3.0\\times 10^2"
A string that will format in a LaTeX inline math environment.
James Curran
sprintf
fmtST(300.123, 1, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.