You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, @tyner. The behavior with leading zeros is untrustworthy. Sometimes it returns the expected result, sometimes it returns NA, and sometimes it returns the wrong result. See reprex below.
library(bignum)
# without leading zeros
biginteger(c("1", "4", "7", "8", "10"))
#> <biginteger[5]>#> [1] 1 4 7 8 10# with leading zeros
biginteger(c("01", "04", "07", "08", "010"))
#> <biginteger[5]>#> [1] 1 4 7 <NA> 8
It would be nice if biginteger() supported leading zeros. Currently (under version 0.3.0) it returns NA:
biginteger("08")
gives
The text was updated successfully, but these errors were encountered: