fromBase: Convert base representation of a number into integer

View source: R/RcppExports.R

fromBaseR Documentation

Convert base representation of a number into integer

Description

Converts base representation of a number into integer.

Usage

fromBase(x, base = 2L)

Arguments

x

vector of positive integer coefficients representing the number in base that is base.

base

positive integer representing the base.

Value

The function returns a positive integer that is a conversion from base under given coefficients x.

Examples

fromBase(c(1, 2, 0, 2, 3), 5)

mnorm documentation built on May 29, 2024, 2:05 a.m.

Related to fromBase in mnorm...