R/sirt_format_numb.R

Defines functions sirt_format_numb

## File Name: sirt_format_numb.R
## File Version: 0.141


#------ format numbers
sirt_format_numb <- function( x, digits )
{
    a1 <- round( x, digits ) + 10^{-(digits +1 ) }
    a1 <- substring( a1, 1, nchar(a1) - 1 )
    return(a1)
}

format_numb <- sirt_format_numb

Try the sirt package in your browser

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

sirt documentation built on May 29, 2024, 8:43 a.m.