floatExpand01: Float expansion between 0 and 1

Description Usage Arguments Value See Also Examples

Description

Expansion of a number between 0 and 1 in a given integer base.

Usage

1

Arguments

u

real number between 0 and 1

base

the base of the expansion (integer)

Value

The digits of the expansion of u in a vector.

See Also

floatExpand to expand a positive number.

Examples

1
2
3
floatExpand01(0.125)
0*1/2 + 0*1/2^2 + 1*1/2^3
floatExpand01(1/3+1/3^3, base=3)

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