R/num2hex.R

Defines functions num2hex

Documented in num2hex

#' Number to Hexadecimal
#'
#' Convert number to hexadecimal string.
#'
#' @param x a number.
#' @param width minimum width for output string.
#' @param upper whether to use upper case.
#'
#' @return Hexadecimal string.
#'
#' @export

num2hex <- function(x, width=NULL, upper=FALSE)
{
  format.hexmode(x, width=width, upper.case=upper)
}
arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.