Learn R Programming

cwhmisc (version 6.0)

normalize: base power and multiplier

Description

split a number into base power and multiplier, x = a*base^e

Usage

normalize( x, base=2 )

Arguments

x
Real
base
Base of power

Details

normalize Return c( a, e ) so that x = a*base^e, abs( a ) in [1, base)

Examples

Run this code
  normalize(100,pi)  ##  1.0265982 4.0000000

Run the code above in your browser using DataLab