integer.to.integer.power: Raise an integer to an integer power

View source: R/carithmetic.R

integer.to.integer.powerR Documentation

Raise an integer to an integer power

Description

Raise a fixed-point integer to a fixed-point integer power, while maintaining the numeric type of the integer, returning

Usage

integer.to.integer.power(base, exponent)

Arguments

base

the integer base of the exponential

exponent

the integer exponent of the exponential

Details

base^exponent

This is needed since in R, a^b, with a and b both integer, returns a float rather than an integer.


ddarmon/MUsaic documentation built on June 19, 2024, 6:43 p.m.