Learn R Programming

mnorm (version 1.2.2)

toBase: Convert integer value to other base

Description

Converts integer value to other base.

Usage

toBase(x, base = 2L)

Value

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

Arguments

x

positive integer representing the number to convert.

base

positive integer representing the base.

Examples

Run this code
toBase(888, 5)

Run the code above in your browser using DataLab