fmt4 {Tex4exams} | R Documentation |
Convert a decimal number into exactly 4 decimal places.
Description
Convert a decimal number into exactly 4 decimal places without scientific notation.
Usage
fmt4(x)
Arguments
x |
a decimal number. |
Details
Round a decimal number into exactly 4 decimal places without scientific notation.
Value
A decimal number rounded into exactly 4 decimal places.
See Also
Examples
x <- sin (sample(c(1:5),1))
fmt4(x)
[Package Tex4exams version 0.1.2 Index]