R/APprecise.R

Defines functions APprecise

Documented in APprecise

#' AP Precision
#'
#' Prints input value with a set number digits.
#' @param x numeric. Input value value
#' @param digits numeric. Number of digits to display
#'
#' @export

APprecise <- function(x, digits = 16){
  oldDigits <- options()$digits
  options(digits = digits)
  print(x)
  options(digits = oldDigits)
}

Try the APfun package in your browser

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

APfun documentation built on Oct. 23, 2020, 8:10 p.m.