| bigfloat {bignum} | R 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")
[Package bignum version 0.3.2 Index]