toBase: Convert integer value to other base

View source: R/RcppExports.R

toBaseR Documentation

Convert integer value to other base

Description

Converts integer value to other base.

Usage

toBase(x, base = 2L)

Arguments

x

positive integer representing the number to convert.

base

positive integer representing the base.

Value

The function returns a numeric vector containing representation of x in a base given in base.

Examples

toBase(888, 5)

mnorm documentation built on Aug. 22, 2023, 9:12 a.m.

Related to toBase in mnorm...