Releases: davidchall/bignum
Releases · davidchall/bignum
bignum 0.3.2
Fix for CRAN checks.
bignum 0.3.1
biginteger()
now accepts strings with leading zeros (#37).- Empty strings are now correctly treated as missing data (i.e., return NA).
- Fix for CRAN checks.
bignum 0.3.0
-
New
seq.bignum_vctr()
for generating sequences ofbiginteger
orbigfloat
(#30). -
To suppress lossy cast warnings, you should now use
suppressWarnings()
(#29).- If using R 4.1+, we recommend
suppressWarnings(expr, classes = "bignum_warning_cast_lossy")
. - Compatible with rlang 1.0.0.
- If using R 4.1+, we recommend
-
vignette("operations")
has been removed and this documentation has been moved to man topics.
bignum 0.2.2
- Adapted tests for testthat 3.1.0 (#27).
bignum 0.2.1
format()
no longer checks for misspelled arguments. This previously caused issues when storing a bignum vector inside a data.frame or data.table (#25).
bignum 0.2.0
New features
- New
vignette("type-hierarchy")
andvignette("precision")
. format()
functions now support customized output.- New
sigfig
anddigits
arguments control the displayed precision. - New
notation
argument chooses decimal, scientific or hexadecimal output. - New options
"bignum.sigfig"
and"bignum.max_dec_width"
determine the default formatting.
- New
- When a bignum vector is stored in a tibble column, the formatting is adjusted to aid reading data vertically.
- The decimal point and exponent are aligned across rows and negative numbers are colored red.
- The options
"pillar.sigfig"
and"pillar.max_dec_width"
determine tibble formatting. - See
vignette("digits", package = "pillar")
for details.
digamma()
andtrigamma()
operations are now supported.log()
now supports thebase
argument.
Bug fixes
- Casting a non-integer
double()
tobiginteger()
now returns the truncated integer, consistent with base vectors. PreviouslyNA
was returned. A lossy cast warning is still raised. - Casting a large
double()
tobiginteger()
now works correctly. PreviouslyNA
was returned, depending on the value ofoptions("scipen")
. - Casting
Inf
tobiginteger()
now raises a lossy cast warning. - Casting a large
biginteger()
tobigfloat()
now raises a lossy cast warning when thebigfloat()
precision is exceeded. is.finite()
andis.infinite()
now correctly handle largebigfloat()
values. Previously large values were considered infinite.- Comparisons between
biginteger()
anddouble()
vectors are now possible (e.g.biginteger(2) > 1.5
). Previously a lossy cast error was raised.
bignum 0.1.0
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 (see
vignette("operations")
):- Check for special values:
is.na()
,is.finite()
,is.infinite()
,
is.nan()
- Comparison:
<
,>
,<=
,>=
,==
,!=
- Arithmetic:
+
,-
,*
,/
,^
,%%
,%/%
- Mathematical:
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()
- Check for special values: