bigfloat: High-Precision Numeric Vectors

View source: R/bigfloat.R

bigfloatR Documentation

High-Precision Numeric Vectors

Description

bigfloat() and as_bigfloat() construct a vector designed to store numbers with 50 decimal digits of precision.

is_bigfloat() checks if an object is of class bignum_bigfloat.

Usage

bigfloat(x = character())

as_bigfloat(x)

is_bigfloat(x)

Arguments

x

Object to be coerced or tested.

Value

An S3 vector of class bignum_bigfloat.

See Also

NA_bigfloat_ to represent missing values.

format() for pretty printing.

vignette("operations") for supported operations.

Examples

# default options limit displayed precision
bigfloat(1) / 3

# display full precision
format(bigfloat(1) / 3, sigfig = 50, notation = "dec")

bignum documentation built on May 4, 2023, 9:10 a.m.