formatScientificTeX {dafs} | R Documentation |
Format a number in scientific notation into LaTeX.
Description
Format a number in standard scientific format XXX.XXEXXX into a string that can be typeset by LaTeX
Usage
formatScientificTeX(x, width, digits)
Arguments
x |
The number to be formatted. This number does not need to be in scientific format. |
width |
|
digits |
See |
Details
If x = 300.123
, width = 4
and digits = 1
, then this
function will return " 3.0\\times 10^2"
Value
A string that will format in a LaTeX inline math environment.
Author(s)
James Curran
See Also
Examples
fmtST(300.123, 1, 4)
[Package dafs version 1.0-38 Index]