NEWS.md
biginteger()
now accepts strings with leading zeros (#37).New seq.bignum_vctr()
for generating sequences of biginteger
or bigfloat
(#30).
To suppress lossy cast warnings, you should now use suppressWarnings()
(#29).
suppressWarnings(expr, classes = "bignum_warning_cast_lossy")
.vignette("operations")
has been removed and this documentation has been moved to man topics.
vignette("type-hierarchy")
and vignette("precision")
.format()
functions now support customized output.
sigfig
and digits
arguments control the displayed precision.notation
argument chooses decimal, scientific or hexadecimal output."bignum.sigfig"
and "bignum.max_dec_width"
determine the default formatting."pillar.sigfig"
and "pillar.max_dec_width"
determine tibble formatting.vignette("digits", package = "pillar")
for details.digamma()
and trigamma()
operations are now supported.log()
now supports the base
argument.double()
to biginteger()
now returns the truncated integer, consistent with base vectors. Previously NA
was returned. A lossy cast warning is still raised.double()
to biginteger()
now works correctly. Previously NA
was returned, depending on the value of options("scipen")
.Inf
to biginteger()
now raises a lossy cast warning.biginteger()
to bigfloat()
now raises a lossy cast warning when the bigfloat()
precision is exceeded.is.finite()
and is.infinite()
now correctly handle large bigfloat()
values. Previously large values were considered infinite.biginteger()
and double()
vectors are now possible (e.g. biginteger(2) > 1.5
). Previously a lossy cast error was raised.First CRAN release.
Numeric vector classes:
biginteger()
stores any integer (i.e. arbitrary precision).bigfloat()
stores 50 decimal digits of precision.Constants for common situations: NA_biginteger_
, NA_bigfloat_
, bigpi
.
Support for many basic operations:
help("bignum-special")
):
help("bignum-compare")
):
<
, >
, <=
, >=
, ==
, !=
help("bignum-arith")
):
+
, -
, *
, /
, ^
, %%
, %/%
help("bignum-math")
):
sum()
, prod()
, max()
, min()
, range()
, mean()
cumsum()
, cumprod()
, cummax()
, cummin()
floor()
, ceiling()
, trunc()
abs()
, sign()
, sqrt()
log()
, log10()
, log2()
, log1p()
, exp()
, expm1()
cos()
, sin()
, tan()
, acos()
, asin()
, atan()
, cospi()
, sinpi()
, tanpi()
cosh()
, sinh()
, tanh()
, acosh()
, asinh()
, atanh()
gamma()
, lgamma()
, factorial()
, lfactorial()