floatExpand: Float expansion

Description Usage Arguments Value See Also Examples

Description

Expansion of a positive real number in a given integer base.

Usage

1
floatExpand(x, base = 2)

Arguments

x

a nonnegative number

base

the base of the expansion (integer)

Value

A list representing the scientific notation of the expansion; the digits in the first component and the exponent in the second one.

See Also

floatExpand01 to expand a number between 0 and 1.

Examples

1
2
floatExpand(1.125)
(1*1/2 + 0*1/2^2 + 0*1/2^3 + + 1*1/2^4) * 2^1

stla/expansions documentation built on May 30, 2019, 5:46 p.m.