floatExpand: Float expansion

Description Usage Arguments Value Examples

Description

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

Usage

1
floatExpand(x, base = 2)

Arguments

x

the number to be expanded

base

the base of the expansion (integer)

Value

The digits of the expansion in a vector.

Examples

1
2
floatExpand(0.125)
floatExpand(1/3+1/27, base=3)

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