R/fmt4.R

Defines functions fmt4

Documented in fmt4

## Convert a decimal number into exactly 4 decimal places.
## 

fmt4 <- function(x){
  y <- format(round(x,4),nsmall=4,scientific = FALSE)
  return(y)
}

Try the Tex4exams package in your browser

Any scripts or data that you put into this service are public.

Tex4exams documentation built on May 31, 2023, 8:04 p.m.